Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Supporting GearVR and NON VR!

Discussion in 'AR/VR (XR) Discussion' started by BigRedSwitch, Aug 10, 2015.

  1. BigRedSwitch

    BigRedSwitch

    Joined:
    Feb 11, 2009
    Posts:
    723
    Hey all,

    I'm writing an app for a client which needs to perform in both Gear VR and outside of a headset. The documentation on the Oculus website is nothing short of *shocking*, so does anyone have any idea how to do this?

    The content is all in one scene, so ideally I'd like to just be able to detect the hardware and flip the Oculus cameras on, switching the other control off, if that makes sense?

    I've seen one example which relied on separate scenes or something like that, but it really won't fulfil my needs.

    Any advice much appreciated! :)

    BRS.
     
  2. Orion_78

    Orion_78

    Joined:
    Feb 13, 2014
    Posts:
    66
    Can't you deactivate Gear VR prefab GameObject and activate a simple camera when Gear VR is not supported ?
     
  3. BigRedSwitch

    BigRedSwitch

    Joined:
    Feb 11, 2009
    Posts:
    723
    Well, that's essentially the question! :) How do I know when the device is plugged into the GearVR so I can enable the alternative?
     
  4. Section-One

    Section-One

    Joined:
    Sep 8, 2014
    Posts:
    81
    VRSettings.loadedDevice does not return anything when connected to gear vr?
     
  5. owen_sixense

    owen_sixense

    Joined:
    Jan 7, 2014
    Posts:
    3
    GearVR apps cannot be distributed through the google play store, only through the Oculus store, and they cannot be launched from the home screen. GearVR apps also cannot be sideloaded unless the user re-signs it for their phone, and they will not launch unless the phone is plugged into the Gear on non-developer devices. You will need to make separate builds of your app to support both.
     
    Mycroft and EdBlais like this.
  6. Orion_78

    Orion_78

    Joined:
    Feb 13, 2014
    Posts:
    66
  7. lumeneo

    lumeneo

    Joined:
    Mar 3, 2014
    Posts:
    60
    Tried your demo through the store. It doesn't work for Gear VR. Any thoughts?