Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
BluePotato's avatar
BluePotato
Honored Guest
10 years ago

Unity Disable Mouse Look

I only want the user to control their vision with their headset, not by using the mouse.

How do I disable mouselook in Unity while preserving headset look?

Thank you.

3 Replies

Replies have been turned off for this discussion
  • Not sure about the base OVR as I attached the OVR camera rig to Unity FPS controller. That one calls a mouselook.cs script, in the first line of update() is a call to updateview I believe (not available to look right now) there it just calls a single method to mouselook script it instantiated that handles all the mouse look stuff, clamping all that jazz.

    Then just grab replace that call with your own if any
  • Hi, I just duplicated an OVR camera prefab, named it something new and then unchecked any script/sections within relating to mouse movement. Worked fine.