Search Unity

Set VR supported and SDK for GearVR from script

Discussion in 'AR/VR (XR) Discussion' started by AntonBaranov, Feb 20, 2017.

  1. AntonBaranov

    AntonBaranov

    Joined:
    Mar 7, 2015
    Posts:
    11
    Hello!

    I found information about changing sdk and on/off virtual reality supported from script:
    - https://unity3d.com/ru/learn/tutorials/topics/virtual-reality/vr-overview?playlist=22946
    - https://forum.unity3d.com/threads/s...419068/?_ga=1.194445933.1980569285.1484284861
    - http://answers.unity3d.com/question...cr.html?_ga=1.261508813.1980569285.1484284861
    - https://skarredghost.wordpress.com/...sdks-list-in-unity-build-settings-via-script/
    but all of these solutions don't work in my case =(

    I have an app where the first scene has some typical interface and qr-code scanner; and the second scene is 3d vr. For android cardboard everything works fine, but for gear vr doesn't. When I just launch the app I get message "Insert phone to the GearVR". I need firstly launch app in normal mode (non VR), scanning qr code, press button and only after that use VR mode... (get message about GearVR, etc)

    Thanks :)
     
  2. Selzier

    Selzier

    Joined:
    Sep 23, 2014
    Posts:
    652
    I think this will require launching a separate APK when you 'press button'. GearVR doesn't let you run VR/Non-VR apps.