Is there a global property in the editor or code that can disable contribution from all light probes in a scene? I have an environment that transitions to night – and light probes cause issues with lighting.
OK, I’ll answer my own question.
// for a single scene
LightmapSettings.lightProbes = null;
// if the current scene has probes, and you are loading a second scene with probes
LightmapSettings.lightProbes = null;
SceneManager.LoadScene(scenePath, LoadSceneMode.Additive);
LightmapSettings.lightProbes = null;
I have to clear before and after, otherwise old light probes get lost in the ether (Unity Issue Tracker - Light probe still affects the main scene after a scene with the light probes are loaded additively and then unloaded).
1 Like