Search Unity

  1. Calling all beginners! Join the FPS Beginners Mods Challenge until December 13.
    Dismiss Notice
  2. It's Cyber Week at the Asset Store!
    Dismiss Notice

HoloLens Scene Change Camera Issue

Discussion in 'Windows Mixed Reality' started by unity_qjAi9BSzMzkYbg, May 17, 2019.

  1. unity_qjAi9BSzMzkYbg


    May 17, 2019

    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


    Unity Technologies

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