Search Unity

VR doesn't work if there are multiple scenes

Discussion in 'AR/VR (XR) Discussion' started by Fuby, Apr 27, 2017.

  1. Fuby

    Fuby

    Joined:
    Mar 26, 2014
    Posts:
    35
    First I`ve only had 1 basic scene and everything worked fine (still does).

    Now I`ve have a menue in where you can input streaming data and stuff (VR support turned off).
    When I hit the start button, the "basic scene" is loaded and I turn the VR support back on. While VR is indeed activated, nothing seems to work. The HMD's position is neither tracked, nor do I receive any kind of picture. Also there aren`t any errors.

    I`ve tried turning the VR on in an Awake() method and also right before loading the scene, in case the VR support wasn`t enabled fast enough. But that didn`t change a thing.

    Worth mentioning:
    I`m using the OptiTrack Motive Plugin to stream my HMD`s position and a couple of objects to Unity. Also I`m using Leap Motion(turned off right now, cause no 5.6 support yet). Im using Oculus CV1.
    Again, if I start the scene WITHOUT the menue beforehand it works like a charm.

    Any suggestions?

    Edit: Seems like it can`t find the HMD. Still, no idea how to solve this.
     
    Last edited: Apr 27, 2017
  2. Fuby

    Fuby

    Joined:
    Mar 26, 2014
    Posts:
    35
    Solved: You can`t use VRSettings.enabled in Awake(). Use it in Start()