Making Cursor Mouse Always Enabled In Unity CardBoard Plugin

时光总嘲笑我的痴心妄想 提交于 2019-12-13 09:36:48

问题


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 !

回答1:


Here's what worked for me:

  1. Create a Cursor GameObject in the Head hierarchy

  2. Add EventSystem in the project hierarchy

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

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

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


来源:https://stackoverflow.com/questions/33095680/making-cursor-mouse-always-enabled-in-unity-cardboard-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!