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

[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:
    364
    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:
    364
    Thanks Melang, I tested this earlier but I don't know why I have not any result.
    Now It's works !