As the title implies, I am looking to apply light settings across all loaded scenes, but I can only find details on how to set the active scene. Unity - Scripting API: LightingSettings
Is there no way to accomplish this?
As the title implies, I am looking to apply light settings across all loaded scenes, but I can only find details on how to set the active scene. Unity - Scripting API: LightingSettings
Is there no way to accomplish this?
Is this for runtime or editor? Only the Lighting settings of the active scene are taken into account.
Building on what Spiney suggests above, you can additively load scenes. When you have loaded many scenes, exactly ONE of them is the active scene. That’s the one whose lighting is used.
Here’s some more reading:
Additive scene loading is one possible solution:
https://discussions.unity.com/t/820920/2
https://discussions.unity.com/t/820920/4
https://discussions.unity.com/t/824447/2
A multi-scene loader thingy:
My typical Scene Loader:
Other notes on additive scene loading:
https://discussions.unity.com/t/805654/2
Timing of scene loading:
https://discussions.unity.com/t/813922/2
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:
If in Editor and not at runtime: Serializing assets as text should get you scene files you can edit via text and then find the settings and replace all within the project to what you need? Take that with a grain of salt however, could easily explode your whole project if something goes wrong.