Forum Discussion

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

How to reorient through univeral menu in Unity game

The Rift version of Starfighter Arduxim failed its review with the following feedback:

The universal menu integration in your functioning as expected. The intended behaviors include:
1) pressing Oculus Home button should bring up Universal Menu,
2) pressing the Oculus Home button again should return to the app experience,
3) re-orientation within Universal Menu should reorient users in the app experience and
4) exit to home should bring up a prompt that warns user that he/she is exiting the experience.
Fails to reorient

I think the last line is the reviewer's comment and the rest is the test they were performing. The game is written in Unity, how do I implement the reorientation as I assumed it would be handled by the Oculus Utilities or runtime.

5 Replies

  • It should be handled as long as there is an ovrmanager in the scene. I can give you more specifics in a little bit, can't check my code right now.
  • In OVRManager's update function, there should be a code:

    if (OVRPlugin.shouldRecenter)
       OVRManager.display.RecenterPose();
     

    That should take care of everything for you.
  • Fulby's avatar
    Fulby
    Heroic Explorer
    The Rift version has now passed this test - thanks for the help @delphinius81.