Oculus gaze pointer issues - disappears behind objects

Hi,

I’m trying to recreate the gaze pointer tutorial you can find here:

If I use their project and create my own scene, I can reproduce the gaze pointer and it is behaving normally. But if I start with a blank project, and recreate the exercise, the gaze pointer disappears behind other objects. I must’ve tried a dozen different ways to do it, still getting the same results.

I compressed my Unity scene and uploaded it. I would be eternally grateful if someone could take a look at it and tell me what I’m doing wrong. I’ve been trying to figure it out and it’s driving me nuts. Link to scene here:

https://www.dropbox.com/sh/jhd8tqs2cv74up3/AABCs57QnGkzryMk8hC9ve4Ta?dl=0

Thank you, your help is greatly appreciated.

Using Unity 5.4 beta and Oculus, Windows 10

Sorry I don’t have time to try out your project, but I can give you this advice:

  1. If the gaze cursor is using a UI Canvas, you can make sure it always renders over other Canvases by selecting the cursor canvas object, and set “Order in Layer” to something higher than the default of 0. I set my cursor to 100.

  2. It’s possible the project they provided included an overwrite of the UI/Default shader to change the queue to “Overlay”. This allows all UI elements to always overlay world geometry as they are rendered last. Look for a shader named ‘UI-Default-’. That might be something you need to include in your project.

2 Likes

Hello. Any luck on solving this issue??