Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
phileday's avatar
phileday
Member
11 years ago

0.4.3 OVRDevice.ResetOrientation and mirror

ok, so how do you now reset the orientation?

My original code was

OVRDevice.ResetOrientation();


what's the new way to do this?

I've also noticed that mirror display has gone as an option. I had a switch for people that went like this.

if(Input.GetButtonDown ("ovrmirror")) {
GetComponent(OVRCameraController).Mirror = !GetComponent(OVRCameraController).Mirror;
}


has this gone now?

On a positive note I've got it working with that latest beta 21 build of unity 4.6 and found a rewrite of the code that detects whether the health and safety display is still there. that's changed from.

if(!OVRDevice.HMD.GetHSWDisplayState().Displayed){

to
if(OVRManager.isHSWDisplayed == false){

1 Reply

Replies have been turned off for this discussion
  • Just found an answer to my main question :) just didn't didn't see it when I was looking before. I have the same problem with my keys sometimes.

    OVRManager.display.RecenterPose();


    To reset orientation.