- Home /
mouse cursor not visible on VR
This is the whole scenario:
I have first scene that says "Begin Experience" with a normal Unity's camera and screenSpaceUI. When the user clicks this with the mouse, it jumps to next scene which is VR scene which has OVR player controller., on Press button "E" from keyboard, It jumps back to "Begin Experience" scene, but the mouse cursor will not be visible.
The mouse is interactive on the scene but not visible.
This works in Game view, but not in build.
I'm guessing, oculus disables the mouse visibility and unity is failing to turn it ON on next scene..
Please help in achieving the required result.
Comment
Best Answer
Answer by SunilUL · Jun 30, 2017 at 10:04 AM
OK,
Solved it by disabling the below lines in OVRSceneSampleController in start function. :D
if (Application.isEditor == false)
{
Cursor.visible = false;
Cursor.lockState = CursorLockMode.Locked;
}