- Home /
have a camera from a different scene?
Is there any way to have a camera from a different scene in the current scene? I can't seem to figure this out, thanks.
Answer by liszto · Oct 21, 2012 at 11:20 PM
If it's a previous scene you can use the DontDestroyOnLoad function to keep your camera between the 2 scene.
The link is here : http://docs.unity3d.com/Documentation/ScriptReference/Object.DontDestroyOnLoad.html
Otherwise, I don't really know how you can do or you want to do with your camera ? Or if you've got a prefab of it, you can load this camera prefab in your current ;)
Its just that the previous screen is blank because when I didn't destroy it, it showed a blank screen because everything else was gone.
I don't really understand the link between your two sentences :/. You want keep the 2 scene with an additive transition or you just want to keep your camera ? If you just want keep the camera without see a blank between your 2 scenes, you can put a loading screen to hide the additive transition between your 2 scenes. If it's something else than that please try to be clear :)