Switching Camera in different Scenes
Is there a way that I can load multiple scenes in Unity and have one camera in each scene that has the exact same transform values like the one in the other scene (so they mirror each other).
If yes, is there a way to switch between the two cameras very fast, so the user does not really notice the change?
I already managed to do this in one scene but i actually need 2 scenes because the have contrasting light settings (one scene very happy and a lot of natural light; the other one almost complete darkness)
Thanks for any help!!
Answer by Brouty · Jul 02, 2018 at 03:45 PM
Hello, are your scenes the same except the light? In this case, he only changed the light. If not, do this script
using UnityEngine;
using UnityEngine.SceneManagement;
public class ChangeSceneScript : MonoBehaviour
{
void ChangeScene()
{
SceneManager.LoadScene("YourSceneName");
}
}
Make sure to drag your scene into File > Build Settings. I don't know how to change the scene (button, trigger, input,...). Tell me more specifically how you want your system to work
Answer by sgroenCoxi · Jul 02, 2018 at 04:25 PM
So the game i'm building uses a "portal" where the player can go through to get to a "mirror World". Basicly i have one room and one room that is just a copy of that room.
my main problem is the lighting...
in one room i need happy light with natural (directional) light where in the other room i need no light at all (only one from a flashlight). At the moment both rooms are in one scene and i have made a box around the room that has to be dark, so no light should reach it, but for some reason it is still possible to see pretty good even though there is should be no light...
In this case, create a "NoLight" layer for example and assign it to your second room where it should have no light. Then go to all the lights that you do not wish what affects your second room and uncheck Culling $$anonymous$$ask's "NoLight" layer
Thank you so much! it worked! Exactly what i was looking for!
Your answer
Follow this Question
Related Questions
How to hide light from second camera 0 Answers
Why isn't my blender object casting shadows? 1 Answer
Weird shadows when camera is in the right position 0 Answers
How to not show different light sources in different cameras 0 Answers
Why do objects go grey at a distance and why isn't the background white? 1 Answer