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.

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


    Jul 25, 2017
    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


    Jan 28, 2017
    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.