Search Unity

Oculus gaze pointer issues - disappears behind objects

Discussion in 'AR/VR (XR) Discussion' started by Qbert3000, May 20, 2016.

  1. Qbert3000

    Qbert3000

    Joined:
    May 17, 2016
    Posts:
    16
    Hi,

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

    https://developer.oculus.com/blog/unitys-ui-system-in-vr/

    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
     
  2. ccsander

    ccsander

    Joined:
    May 17, 2013
    Posts:
    44
    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-<something>'. That might be something you need to include in your project.
     
    salvolannister and nirajm like this.
  3. Spyros_

    Spyros_

    Joined:
    Apr 7, 2017
    Posts:
    4
    Hello. Any luck on solving this issue??