Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

[SOLVE][UI] How do I know if touches or input is hover UI

Discussion in 'UGUI & TextMesh Pro' started by Sylmerria, Aug 25, 2014.

  1. Sylmerria

    Sylmerria

    Joined:
    Jul 2, 2012
    Posts:
    369
    Because I don't if I keep NGUI or not so I test uGUI. I succeded to know wich is selected but no more. And I don't find a topic on that.

    Thanks :)
     
  2. Melang

    Melang

    Joined:
    Mar 30, 2014
    Posts:
    166
    Code (csharp):
    1.  
    2. using UnityEngine.EventSystems;
    3.  
    Code (csharp):
    1.  
    2. if (EventSystemManager.currentSystem.IsPointerOverEventSystemObject())
    3.  
     
  3. Sylmerria

    Sylmerria

    Joined:
    Jul 2, 2012
    Posts:
    369
    Thanks Melang, I tested this earlier but I don't know why I have not any result.
    Now It's works !