Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

HoloLens Scene Change Camera Issue

Discussion in 'VR' started by unity_qjAi9BSzMzkYbg, May 17, 2019.

  1. unity_qjAi9BSzMzkYbg

    unity_qjAi9BSzMzkYbg

    Joined:
    May 17, 2019
    Posts:
    1
    Hello,

    I'm using Unity 2017 and the HRTK from Microsoft.
    I have the problem, that i get multiple MixedRealityCameras when switching between scenes.
    I've got 2 scenes at this point. In Scene 1 is the Camera and the inputmanager. Scene 2 just got a 3d model.
    At the start scene 1 is loading and i can switch to scene 2, but when i switch back to scene 1 a second MixedRealityCamera is loaded and in every iteration theres one more. I can see at the performance of the Hololens that it becomes slower with every cycle (every new camera).

    How can i stay with just one camera?

    Second issue: The first Camera upon loading doesnt get the setting i set in scene 1, it just starts with the default setting. Only when the second (and so on) camera starts, my setting are applied.

    How can i control this behaviour?

    Thank you for your answers.
     
  2. JasonCostanza

    JasonCostanza

    Unity Technologies

    Joined:
    May 23, 2017
    Posts:
    404
    Are you loading the scenes additively or creating a camera as part of a script on start or something?