Forum Discussion
ArthurFox
9 years agoHonored Guest
How to switch between VR and non-VR mode, as in the "Samsung Gear 360" app, with Unity + Android?
Hi there, I'm developing a simple app in Unity and wish to be able to switch between starting in non-VR mode, then switching into VR mode. This is much in the same way as the Samsung Gear 360 app does when you click on the "View on Gear VR" button on the top-right.
When enabling "Virtual Reality Supported" in the Android tab of the Unity Player Settings, the app will always require the Gear VR to start up, which is less than ideal. And once its running there's no way of switching out of VR, even when a script disables the suggested "VRSettings.enabled" flag, which simply doesn't seem to do anything.
So does anyone have any ideas?
Thanks in advance!
When enabling "Virtual Reality Supported" in the Android tab of the Unity Player Settings, the app will always require the Gear VR to start up, which is less than ideal. And once its running there's no way of switching out of VR, even when a script disables the suggested "VRSettings.enabled" flag, which simply doesn't seem to do anything.
So does anyone have any ideas?
Thanks in advance!
30 Replies
Replies have been turned off for this discussion
- oleg.konovalovHonored Guest
Found workaroud for my problem in previous post: start "vr_only" app in background job after finishing current app.
- oleg.konovalovHonored Guest
Almost 5 years past and there is still no "dual" mode. I'm trying to implement recommended solution with 2 apps. But when I start “vr_only” app from regular app, app just freeze. In log I can see E/InputDispatcher: Display #X has focused window. I can start another regular intent of other app from my regular app, but fail to start “vr_only” app. Did anyone had luck with implementing recommended solution?
- christheobaldisHonored GuestUpdates?
- Chris10001ExplorerHi - this would be really useful - any progress?Even if it is not ready yet - is thereany way, programatically - in unity y to find out if the APK has been launched as a 2D or a VR app.My sideloaded app crashes if launched by mistake from 2D mode, and you have to reboot to fix it.So I would like to do somethgin like this:Are we in 2Dmode? If yes - then quit.
- behnam-lumExplorerStill waiting for this and nothing happens!
- iBrewsExplorerbump! Would really appreciate this, or at least knowing when it can be expected.
- SuneVRExplorerHi Oculus staff, where are we on the Dual Mode? @imperativity or @vrdaveb
- StaRky_FRProtege@imperativity
Hi ! Any update for the dual functionnality ?
Is there a workaroud ? - zproxyExpert Protegewhy is Oculus Browser browser listed as DUAL? when clicked, it asks for Gear VR like other
apps?vr_only - zproxyExpert Protege
on S6, if apk is set for dual, it does appear under DUAL list near others. If clicked, it seems its primary activity is launched.(name = "com.samsung.android.vr.application.mode", value = "dual")
will the app then have to await for the headset event, and then launch itself again? or will oculus home block it while inside headset?
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 1 year ago
- 2 years ago
- 8 months ago