There is a scene with the game "snake".

Here she is: Here she is

Here she is

There is a scene with the main menu.

Here it is:

here it is

If I launch the game through the "Play" button (from the Unity menu), then the menu (from the first scene) is loaded at the beginning, and when I click on this "play" menu, the game scene starts (Game). For some reason, this scene is much darker than if you just run the game scene separately, without a menu.

Example 1: enter image description here

Example 2: enter image description here

MainMenu script:

using UnityEngine; using System.Collections; public class MainMenu : MonoBehaviour { public string startLevel; public void NewGame() { Application.LoadLevel (startLevel); } public void Quit() { Debug.Log ("Game Exited"); Application.Quit (); } } 

What am I doing wrong? I want to know why I have such a difference in the "color palette" and how to make it look like on the original first two screens?


reference to the project

  • Try to write more detailed questions. Explain exactly what you see the problem, how to reproduce it, what you want to get as a result, etc. - Nicolas Chabanovsky

1 answer 1

In general, if you knock the game down, you can see that everything is functioning properly. So worry about this problem for a compiled game is not worth it.

So the problem is only directly in the editor.

Honestly, I myself do not know where the legs grow from this problem, but, nevertheless, to fix it directly in Editor , you need to choose to follow the menu path on the game's stage:

WindowLightingLightmaps → uncheck Continuous Baking → click Build to “cook” the light manually.

Perhaps in later versions of Unity, instead of Continuous Baking will be Auto and you can even stay on the Scene tab instead of Lightmaps , i.e. the path will be as follows:

WindowLightingScene tab → see below Auto → uncheck → click Build .

enter image description here

Note : if you add more light or make changes, then most likely you will need to re-prepare the light again. Just keep it in your head just in case.

  • Is this the notorious light roasting? - Artik Slayer
  • @ArtikSlayer baking shadows) but something like that. Why this happens only can not say. maybe a bug. - Alexey Shimansky
  • Yes, I wanted to say baking shadows. = D - Artik Slayer