r/oculusdev • u/[deleted] • Apr 06 '16
How to implement GearVR universal menu with sdk 1.0 and greater
I haven't been able to find great resources online as to how to implement the GearVR's universal menu in unity...
The oculus guidelines say that the universal menu must be activated with a longpress of the back button, and the "back to oculus home" menu must be activated with a short press of the back button.
Has anyone here implemented these features on their gearVR app? Could you explain how you did?
1
u/Gruguir May 18 '16
Ok i also found that this works by attaching OVRPlatformMenu.cs. But how to bypass it to be able to use back button (like for game's own menu or return to app's start screen) ? Is there an elegant way or do we have to modify OVRPlatformMenu.cs ?
1
May 19 '16
I forget the fine details of this, but you will have to modify/interact with the Oculus SDK.
Read through OVRPlatform.cs and any other classes that might be involved to get a better understanding of how the software works. You shouldn't have too much trouble solving this once you have.
4
u/delphinius81 Apr 06 '16
Take a look at the OVRPlatformMenu script that's part of the Oculus Unity tools (OVR/Moonlight/Scripts/OVRPlatformMenu.cs). Attach that script to an object that will persist throughout your game.