Search code examples
unity-game-engineunityscriptgoogle-cardboardvirtual-reality

Making Cursor Mouse Always Enabled In Unity CardBoard Plugin


i think the title is clear , i want to make the mouse Cursor which is set in GazeInpuModule to be always enabled and in center of the both Left And Right Cameras , can anyone help me ?!

  • ive tried changing the GazeInputModule code to place the cursor in center , but got nothing !

Solution

  • Here's what worked for me:

    1. Create a Cursor GameObject in the Head hierarchy

      Add Cursor GameObject

    2. Add EventSystem in the project hierarchy

    3. In the EventSystem Gaze Input Module component, ensure "Show Cursor" is selected.

      Show Cursor checkbox select

    4. In GazeInputModule.cs, PlaceCursor(), change the SetActive() to:

      private void PlaceCursor() {
          // ...
          cursor.SetActive(showCursor); 
          // ...
      }