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

How can I make my Gaze Pointer work?

Discussion in 'VR' started by KenniKure, Sep 10, 2019.

  1. KenniKure

    KenniKure

    Joined:
    Aug 7, 2019
    Posts:
    39
    Hi Forum. I have earlier created a thread with the subject of how to create a laserpointer/graphic raycaster, but I gave up on that. Instead I thought about triggering UI buttons/UI elements with a GazePointer.

    Why is what I have so far not working? It doesnt come up with any errors? Where did I set up the things incorrectly?

    I used this link:


    In the picture below is my Unity project. In my Hierarchy I have the menu on as shown here. I toggle it off, and in game mode (in VR) I can open and close the menu with the X button on the keyboard.

    upload_2019-9-10_13-45-33.png

    In the OVRCamerarig I have the Physics raycaster.
    upload_2019-9-10_13-50-25.png

    The OVRGazePointer is set up like this:
    upload_2019-9-10_13-51-34.png

    And in the EventSystem it is set up like this:
    upload_2019-9-10_13-52-18.png

    I know its a long post. I hope someone can tell me what to do, so I can trigger the UI menu buttons with the Gaze :)
     
  2. KenniKure

    KenniKure

    Joined:
    Aug 7, 2019
    Posts:
    39
    The gaze ring is showing now!! Fantastic. I dont know what I did.

    Does anybody know why it seems so far away, disappears sometimes and "goes through" the UI menu and buttons?
     
  3. ElPiwai

    ElPiwai

    Joined:
    Jan 30, 2020
    Posts:
    4
    Your GazePointer has the HideByDefault checkbox ticked. It hides the pointer when not interacting with a button.
    Did you find a solution for the "goes through" issue? same problem here.
     
  4. NConcepts

    NConcepts

    Joined:
    Nov 20, 2015
    Posts:
    2
    Hi, any update on the issue ?
     
  5. izukingz

    izukingz

    Joined:
    Oct 5, 2018
    Posts:
    1
    On your OVR Raycaster, change the sort order to -1 to get the pointer to be on top.