Search Unity

Question Graphics Raycast Not Working on iOS using XR Ray Interactor

Discussion in 'XR Interaction Toolkit and Input' started by juliens137, Sep 29, 2020.

  1. juliens137

    juliens137

    Joined:
    Oct 2, 2017
    Posts:
    26
    Hi,

    I have a gaze based UI set up on for my cardboard app. I dropped an XR Ray Interactor script on my camera object, added a Tracked Device Graphic Raycaster to my Canvas, and added a collider and Event trigger to my button object.

    The gaze works totally fine in the editor and works on a few scenes in my project on my device, but some scenes the button doesn't register the gaze at all and I can't start the scene. I have no clue why there isn't this consistency across scenes when they all use the same prefabs. If anybody has any insights into what may cause this? Whether it's GameObject hierarchy, other Cameras in the scene? I'm at a loss for how to solve this. Thank You!