pflores
11 years agoHonored Guest
Implementing the VRMenu
Hello,
My team is currently porting a game for Moonlight. For this purpose we plugged our game with the VRLib by using the UnityPlugin.cpp as a basis. Even though our game doesn't use the Unity engine, we simply replaced the calls with our own engine's update/draw calls and it worked fine, we got our game working with the timewarp and the sensors !
We'd like now to implement the Oculus Menu when the user longpresses the back button. If we go by the Unity samples, it seems like the menu should be implemented by the game. However, the VRNative samples instead use the VRMenu classes and it seems to work almost out of the box. However to use the VRMenu you need to use the App class, which Unity doesn't use !
Is there a reason why UnityPlugin.cpp doesn't use the App classes ? Would subclassing my Activity into a VRActivity so I can use the VRMenu the right way to go ? Or should i try to implement the VRmenu inside the UnityPlugin.cpp ?
Thank you for your attention.
My team is currently porting a game for Moonlight. For this purpose we plugged our game with the VRLib by using the UnityPlugin.cpp as a basis. Even though our game doesn't use the Unity engine, we simply replaced the calls with our own engine's update/draw calls and it worked fine, we got our game working with the timewarp and the sensors !
We'd like now to implement the Oculus Menu when the user longpresses the back button. If we go by the Unity samples, it seems like the menu should be implemented by the game. However, the VRNative samples instead use the VRMenu classes and it seems to work almost out of the box. However to use the VRMenu you need to use the App class, which Unity doesn't use !
Is there a reason why UnityPlugin.cpp doesn't use the App classes ? Would subclassing my Activity into a VRActivity so I can use the VRMenu the right way to go ? Or should i try to implement the VRmenu inside the UnityPlugin.cpp ?
Thank you for your attention.