Search Unity

Question How to find out a UI transform on specific screen position?

Discussion in 'UGUI & TextMesh Pro' started by Xhitman, Nov 13, 2020.

  1. Xhitman

    Xhitman

    Joined:
    Oct 30, 2015
    Posts:
    452
    I attach UI on each character model, and only one of them can be active. So I want to find out which character UI is active by checking on the default position on screen view.
     
  2. uDamian

    uDamian

    Unity Technologies

    Joined:
    Dec 11, 2017
    Posts:
    1,231
    Are you using uGUI (Canvas) or UI Toolkit (UIDocument)?
     
  3. Xhitman

    Xhitman

    Joined:
    Oct 30, 2015
    Posts:
    452
    canvas. I tried grahpicraycast, but it do not hit button on the canvas.