V
V
vari0us2015-11-19 21:05:22
C++ / C#
vari0us, 2015-11-19 21:05:22

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

1 answer(s)
V
Vladimir Limarchenko, 2015-11-22
@vari0us

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 question

Ask a Question

731 491 924 answers to any question