Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
master
Issue ID
1398529
Regression
No
[HDRP] Lighting window shows not the actual settings that would be used for baking, happens in multi scene environments
HDRP uses the last loaded scene to bake sky lighting. The Lighting tab shows the active scenes settings. This leads to confusions.
Repro:
1) Open scene WhiteSky
2) Additively load RedSky
3) Open Lighting settings
4) Notice it shows WhiteSky will be used for baking (which not true)
5) Bake lighting
Result: Scene is baked with red sky
Expected: The scene uses the settings that are actually displayed in Lighting tab (White Sky)
Additionally we have a warning that says that the last loaded scene will be used for baking, preferably we could get rid of the warning and enforce behaviour that would not allow incorrect setups.
Slack discussion of the topic:
https://unity.slack.com/archives/C0108P9UH6H/p1643104955073000?thread_ts=1642163016.058900&cid=C0108P9UH6H
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on ResizeScriptingList<ScriptingObjectPtr> when passing an undeclared variable to the results parameter for GameObject.FindGameObjectsWithTag
- [Android] "Screen.safeArea.y" always returns values outside of the Safe Area when the device is in Portrait orientation
- Frame spike due to many TreeRenderer.TreeUpdated calls when repositioning terrains in large Scenes
- Crash on GameObject::RemoveComponentFromGameObjectInternal when reparenting Text GameObjects
- [IL2CPP-GarbageCollector] Changing GCMode might permanently disable GC in a multithreaded context
Resolution Note:
Unfortunately there isn't much we can do with the current system.
Showing and using the active scene in the Env panel is not an option because we don't have that information at runtime and we still need the static sky there. So that would lead to potential discrepancies.
I thought about showing only the "last loaded" as explained in the warning but then, you have no way to cleanup the other scenes if you have more than one, which would lead to the same discrepancies at runtime since we don't control load order.
What we need is a more centralized baking manager where this kind of things could be stored. Until we make more progress on this, we'll postpone this particular case.