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 Unity's framework so the player can interact with the UI with the blue round cursor.
- 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 ?