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

UGUI beta20 on android urgency question

Discussion in 'UGUI & TextMesh Pro' started by lianaqiang, Oct 14, 2014.

  1. lianaqiang

    lianaqiang

    Joined:
    Apr 24, 2013
    Posts:
    14
    I'am on my android virtual realilty project , Can somebody tell me how know any finger Pointer is on ui object or not.
     
  2. secondbreakfast

    secondbreakfast

    Joined:
    Jan 5, 2013
    Posts:
    98
    EventSystem.current.IsPointerOverGameObject()
     
  3. lianaqiang

    lianaqiang

    Joined:
    Apr 24, 2013
    Posts:
    14
    well, I'll give it a try
     
  4. lianaqiang

    lianaqiang

    Joined:
    Apr 24, 2013
    Posts:
    14
    Nope the answer is no!, i have just used , but it works really good on standalone
     
  5. lianaqiang

    lianaqiang

    Joined:
    Apr 24, 2013
    Posts:
    14
    What i want is if i use raycast to drag a 3d gameobject, i do not want it fired if my finger was ontoching any ugui element
     
  6. phil-Unity

    phil-Unity

    Unity UI Lead Developer Unity Technologies

    Joined:
    Nov 23, 2012
    Posts:
    1,226
    you need to specify the finger id you want to check against into the IsPointerOverGameObject call. the one with no params only checks -1 which is mouse.