Search Unity

Feedback Need help with switching between Controller and Gaze within a scene

Discussion in 'AR/VR (XR) Discussion' started by Xarpie, Sep 5, 2019.

  1. Xarpie

    Xarpie

    Joined:
    Jul 25, 2017
    Posts:
    1
    In the scene, I have the main menu UI where the user has an option to select VR handheld controller or the gaze to go move around hotspots in the scene. Now when the player selects one of the controller options, I want the other option to be disabled throughout the scene. But right now, whichever controller is selected, both the handheld and gaze are active in the scene.
     

    Attached Files:

  2. arfish

    arfish

    Joined:
    Jan 28, 2017
    Posts:
    782
    Which platform are you building for?
    If it's Daydream I think the recommended way to disable the Controller pointer is to disable the gameobjects in the pointer, but leave the parent enabled. Like this:

    Code (CSharp):
    1. foreach (Transform t in GvrControllerPointer.transform) {
    2. t.gameObject.SetActive(your_choice);
    3. }

    The reticle is just to enable, or disable.