Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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 !
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
197 views
Welcome To Ask or Share your Answers For Others

1 Answer

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); 
        // ...
    }
    

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...