OVRCameraRig
or OVRPlayerController
prefabs will enable the emulator. Otherwise, you can attach the OVRHeadsetEmulator
class to a game object.Input | Action |
---|---|
Ctrl (hold) + mouse movement | Update headset pitch and yaw |
Ctrl (hold) + alt + mouse movement | Update headset roll |
Ctrl (hold) + mouse wheel | Update headset height/elevation |
Ctrl (hold) + middle mouse button | Reset the pose to scene default |
OVRHeadsetEmulator.opMode
is set to EditorOnly
, which make it effective only in the Unity Editor preview window. Set to AlwaysOn
to activate the function in standalone builds.OVRHeadsetEmulator.activateKeys
and OVRHeadsetEmulator.pitchKeys
, you can change the default key-bindings.OVRHeadsetEmulator
is properly attached, and try stopping the scene and restarting.OVRHeadsetEmulator
modifies OVRManager.headPoseRelativeOffsetRotation
and OVRManager.headPoseRelativeOffsetTranslation
. You can also write your own script or use Unity animation clips to modify those properties to automatically change the HMD pose.