Please make sure to tick Virtual Reality Supported in PlayerSettings.
https://lh3.googleusercontent.com/4AHqnC-wBtcQ9Os9BwQOJfEQafsweeh4aV6-Zrd6mq-Hzgv1B455qYWjpM4cORvpMOdCaWY_AgmTxdMeghxcJ1bbNJDmlTVRaRC8ImU0-yz0vnZb1c3pu4m-KsGoJ9u0Fg
Drag GazePointer Prefab to your camera.
<aside> 💡 Note: Camera needs to have the tag MainCamera
</aside>
On EventSystem
GameObject, remove Standard Input Module
and add Gaze Input Module
.
You can adjust Delay time and Gaze time in the Gaze Input Module
component.
To prevent repeating click on the same object, tick Prevent Repeat Click in GazeInputModule Component under EventSystem GameObject.
If you’re testing gaze mode without headset, tick Preview Without Headset in GazeInputModule Component under EventSystem GameObject.
<aside> 💡 Note: When building the VR project, don’t forget to tick off Preview Without Headset
</aside>
The GazePreview(NoHeadset) Scene provides a mouse emulator. You can left click the mouse and drag the camera to do a quick testing.