Unity and Gear VR
Hi everyone,
So recently I've been going through and working on my first Gear VR application, and I've been struggling a bit to find solid documentation on how to use Unity with it. I've been reading that there are 2 ways of developing with Unity currently: native Unity integration via their recent built-in VR options, and the OVR Unity Integration Tools.
I followed the instructions for the Integration Tools, and while I was able to get my application to work, I have been unable to get a variety of needed things working. Specifically, the following have not worked for me:
When I've dug around the code and begun debugging it, I've noticed that the isHmdPresent in OVRManager.cs is always false for my Gear VR. Yet the Gear VR is prompted for when I try to launch the app (The "To open this application, insert your device into your Gear VR" message appears perfectly fine, and goes away and launches my app when I insert my phone into it). My assumption as a result is that because I am using 5.2.2p2, I need to have native integration, but that leaves me with questions such as how to retrieve the volume, and how to implement the universal menu.
To summarize, I am just trying to figure out if I need to just use only native Unity tools and create a custom universal menu and volume control, or if I am just using the OVR Unity Integration Tools wrong. Any help would be much appreciated. Thanks!
Edit
Not entirely sure what happened, but overnight volume controls randomly appeared, and the back button I managed to get working by mapping to the Escape key (Universal Menu can hopefully just extend from that). I believe that this is due to an updated service on my Gear VR, but am not 100% sure.
So recently I've been going through and working on my first Gear VR application, and I've been struggling a bit to find solid documentation on how to use Unity with it. I've been reading that there are 2 ways of developing with Unity currently: native Unity integration via their recent built-in VR options, and the OVR Unity Integration Tools.
I followed the instructions for the Integration Tools, and while I was able to get my application to work, I have been unable to get a variety of needed things working. Specifically, the following have not worked for me:
- The Volume Keys
The Back Button
The Universal Menu
When I've dug around the code and begun debugging it, I've noticed that the isHmdPresent in OVRManager.cs is always false for my Gear VR. Yet the Gear VR is prompted for when I try to launch the app (The "To open this application, insert your device into your Gear VR" message appears perfectly fine, and goes away and launches my app when I insert my phone into it). My assumption as a result is that because I am using 5.2.2p2, I need to have native integration, but that leaves me with questions such as how to retrieve the volume, and how to implement the universal menu.
To summarize, I am just trying to figure out if I need to just use only native Unity tools and create a custom universal menu and volume control, or if I am just using the OVR Unity Integration Tools wrong. Any help would be much appreciated. Thanks!
Edit
Not entirely sure what happened, but overnight volume controls randomly appeared, and the back button I managed to get working by mapping to the Escape key (Universal Menu can hopefully just extend from that). I believe that this is due to an updated service on my Gear VR, but am not 100% sure.
