Answer the question
In order to leave comments, you need to log in
Why is there incorrect level lighting after loading?
In the training project, I have two scenes, both are set to directional light and it works when I just loaded the scene for the first time, i.e. pressed the project execution button. But as soon as I go to the second scene, this light is not visible there, as if it is not set :-( If you return to the previous scene again through game triggers, then the lighting disappears there too. What's the matter ?
sc1 //(first)
sc2//(second)
I use trigger colliders of the transition from the first to the second and from the second to the
first
.
Application.UnloadLevel(Application.loadedLevel);//без этого тоже загружал, результат такой же как и с этим, по идее нужно.
Application.LoadLevel (Level_to);//Эта строка задается в инспекторе на сцене. имя уровня .
Answer the question
In order to leave comments, you need to log in
Corrected my answer.
From here:
answers.unity3d.com/questions/919940/applicationlo...
The fix is to go to Window -> Lighting -> Lightmap Tab -> Disable Continuous Baking -> Press Build to bake the lighting once manually. And now the lighting remains consistent. Original: forum.unity3d.com/threads/application-loadlevel-ap...
Hope this helps.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question