Skybox and Fog Colour Change When the Scene Changes

Fog and Skybox are part of lighting for a scene.

The scene that is presently marked active is the one that controls it.

When doing additive loading you can’t load and mark a scene active because the load doesn’t happen until end of frame.

The workaround is to set the active the next frame after.

Either way, you must set which scene you want active.

My typical Scene Loader:

My standard additive blurb:

Additive scene loading is one possible solution:

A multi-scene loader thingy:

Other notes on additive scene loading:

Timing of scene loading:

Also, if something exists only in one scene, DO NOT MAKE A PREFAB out of it. It’s a waste of time and needlessly splits your work between two files, the prefab and the scene, leading to many possible errors and edge cases.

Two similar examples of checking if everything is ready to go:

1 Like