Warning: Your current multi-scene setup has inconsistent Lighting settings...

Playing my project in 2018.2.0b1 editor, outputs the following warning, every time an additive scene is loaded:

These additive scenes contain UI elements only. I use separate scenes for various UI elements, such as Pause, HUD, shared menu screens such as Options, Perks and Awards and so on…

I don’t see any way how I can homogenize the lighting settings of these scenes, because they’re loaded additively to every actual level in the game. The game features 60 levels where each has different lighting settings.

How would I homogenize the lighting settings of these shared UI scenes to the actual 60 levels that have different lighting settings?

Furthermore, additive scenes are loaded sequentially in the same order in my project. I took care of that while writing the loading code.

How can I get rid of the warning, without causing a mega maintenance overhead on my side?

4 Likes

Hey @Peter77

Currently, this is the intended behaviour in 2018.2 to avoid further conflicts regarding lighting settings while loading scenes additively in Unity. The warning message simply says that the lighting settings you have for each scene doesn’t match and can lead to problems while loading the data at runtime. You can try to match all the lighting settings for your scenes and use the same values/options in order to resolve the problem. Hope this helps, if not please let us know.

Thanks

1 Like

That’s the thing, I believe it is not possible. Those additive scenes are shared across every level in the game.

I could match lighting settings of the pause menu scene with “Level 1”, but Unity outputs the warning if I load the pause menu scene in “Level 2”, due to Level 2 having different lighting settings that Level 1.

How can I solve this issue? I’m very interested to get this warning fixed, because I aim to have zero warnings in the project.

I’m not entirely sure if I follow. Can you perhaps share a small reproducible project with us?

Thanks

For example, “Level 1” consists of these scenes:

  • Harbour.unity

  • PauseMenu.unity loaded additively

“Level 2” consists of these scenes:

  • Trainyard.unity
  • PauseMenu.unity loaded additively

“Level 3” consists of these scenes:

  • SpaceStation.unity
  • PauseMenu.unity loaded additively

“Hardbour.unity”, “Trainyard.unity” and “SpaceStation.unity” all have different lighting settings.
The “PauseMenu.unity” scene is loaded additively to every level, that’s what I meant when I was referring to it as a “shared scene”.

This is a very simplified example. In the actual game, I don’t load only “PauseMenu.unity” additively, but a lot more UI scenes.

I hope that makes things more clear?

1 Like

If I understand correctly, it seems like your PauseMenu.unity scene has lighting setting too. Do u have any particular reason to keep the lighting setting in PauseMenu.unity scene? Perhaps remove lighting setting at PauseMenu.unity scene should fix the problem.

1 Like

To my knowledge, every scene in Unity has lighting settings and you can’t remove them.

Here are screenshots of the PauseMenu.unity lighting settings:

3471872--275857--lighting_scene.png 3471872--275855--lighting_globalmaps.png 3471872--275856--lighting_objectmaps.png

Everything is already turned off, but as far as I know, you can’t tell Unity to remove the entire lighting settings from any scene. Which is probably why they added the warning…

5 Likes

In fact this’ll affect a fair few mobile projects and just about every project that tries to improve on prefabs. Perhaps all warnings (especially this one) could be optionally toggled somewhere?

4 Likes

@kemalakay , I think it should have an option to completely strip out lighting from scene.

8 Likes

(Case 1031433) 2018.2: multi-scene setup has inconsistent Lighting settings

This warning is reasonable if there’s a way to disable lighting from a scene, or set to ignore when loaded additively. If there isn’t one yet, can the warning be disabled until that time? It’s going to be a problem for a lot of projects such as ours, where we assume lighting is ignored in additive scenes. We’re frequently loading additive scenes so this really spams the warning output.

1 Like

Hey everyone,

Just wanted to tell that we processed @Peter77 's bug and we’ll address it very soon for 2018.2. Thank you for reporting the issue and we really appreciate your input :slight_smile:

9 Likes

Hey everyone,

I originally put the feature in because additive scene loading causes so many headaches across different games. The idea is to warn the user of settings that can change the entire look of a game if the scene loading order changes. For instance, two scenes with two different skyboxes will issue this warning, because only one skybox (the one of the active scene) can be shown and will be used when baking them together.

However, @Peter77 's case is causing problems with the warning system because it is perfectly reasonable to mix one scene like a Pause menu with multiple other scenes that have varying settings. Currently, you cannot do much to fix the warnings, so I will have to re-adjust some things around the environment warnings.

9 Likes

+1, I’m using scenes as packages for various things, not only UI’s but managers as well. As of current beta .9 nothing has changed.

I wonder, if there will be any releases that allow complete lighting strip from the scenes (since they’re already loaded additively and never switched to active)?

1 Like

FYI, the warnings for ambient will no longer appear as soon as the next patch hits.

1 Like

Hi @thefranke , it will be even better if you can fix scene B missing lightmap issue when loading scene A then loading scene B additive.

Hey @optimise , do you have a reproducible or ticket for this issue?

Hi @thefranke , case number 1057521.

1 Like

.f1 version is available, same freaking warnings.

Great. Can we have a toggle to turn them off? Somewhere? In the project settings, I don’t know. Please?
They clutter console, each time my setup is loaded. In editor, in game. Each bloody time.

I would understood this, if the Unity had a proper way to script around Lighting settings to automate the process, but there’s none.
I don’t want to manually assign same lighting setting for 11 scenes, 10 of which do NOT use them.
Moreover, would never use those settings due to how scenes are loaded.

Scenes are never loaded separately. Their load order is always constant, which is enforced by our own tools.

Editor Settings tab has enough space. Just put a logging level for multi-scene setup there. It’s not that hard.

22 Likes