Search Unity

Issue with OVR Raycaster and World Space UI

Discussion in 'AR/VR (XR) Discussion' started by CreepyInpu, Apr 7, 2016.

  1. CreepyInpu

    CreepyInpu

    Joined:
    Oct 9, 2014
    Posts:
    23
    Hi there !

    So, I'll try to keep it simple :

    - I have an UI that the player can "pop" in front of him anytime during the gameplay
    - I've used scripts from the Oculus's unity framework so the player can interact with the UI with a crosshair.
    - On my scene, I have gameobjects with an "OnPointerEnter" listeners, so that when then player look within the area that I delimited using a box trigger, something happen.

    Everything's working fine, but if the player pop the UI in front of a gameobject with a "OnPointerEnter" listener, the UI that is in front of the gameobject doesn't work, but the gameobject behind do receive the events from the player.

    I'm sure it has something to do with layers orders or something, but I can't figure that out. I need the UI to be "first priority" anytime to receive events, blocking out gameobjects behind.

    Anyone got an idea ?

    Thanks !