Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

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,203
    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.