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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

IsPointerOverGameObject not working on world space canvas?

Discussion in 'UGUI & TextMesh Pro' started by FlashMuller, Apr 29, 2015.

  1. FlashMuller

    FlashMuller

    Joined:
    Sep 25, 2013
    Posts:
    449
    Hey guys,
    I am using IsPointerOverGameObject(x) to determine wether a touch should affect my world or is on the ui. This works fine for the Overlay UI, but it does not if the Canvas containing the UI elements is in world space. This is also visible in the editor / EventSystem: while the overlay UI receives pointerEnter events the world space one does not.
    Is this by design? How would I handle this behaviour / check if my world space ui was clicked.
    Thank you!
     
  2. DeeCeptor

    DeeCeptor

    Joined:
    Aug 4, 2013
    Posts:
    31
    Hi. I'm having the exact same issue. Did you ever find a workaround for this annoying 'feature'?
     
  3. Peez-Machine

    Peez-Machine

    Joined:
    Jul 30, 2013
    Posts:
    27