Forum Discussion
Elecman
12 years agoExplorer
Unity - OVRMain Menu locks mouse
The OVRMainMenu script locks the mouse. This can give unexpected behavior. It took me a while to find out why my mouse wasn't working.
Please give an option on this script to disable this feature.
Please give an option on this script to disable this feature.
4 Replies
- cyberealityGrand ChampionI'm not understanding what you mean by "locking the mouse."
Can you explain exactly what you are trying to do and what is broken? - ElecmanExplorerIf I use a normal cursor, the cursor is not visible. If I use a 3d Cursor (VR Gui project), the cursor does not move if I move the mouse. It is caused by the following code in OVRMainMenu.cs:
// Make sure to hide cursor
if(Application.isEditor == false)
{
Screen.showCursor = false;
Screen.lockCursor = true;
}
Normally this is what you want, but what if you want to pause the game and select a menu item using the cursor? - cyberealityGrand ChampionIf you need other functionality, feel free to comment out that code.
- ElecmanExplorer
"cybereality" wrote:
If you need other functionality, feel free to comment out that code.
LOL, gold!
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 16 days ago
- 2 years ago
- 10 months ago
- 10 years ago