Search Issue Tracker
Fixed in 5.4.0
Votes
3
Found in
5.3.0f4
Issue ID
751599
Regression
Yes
BakeMultipleScenes API doesn't work anymore
To reproduce:
1. Open attached project
2. Select scene1 and scene2
3. Build > Bake Multiple levels
4. Run scene1 and load scene2 by pressing a button
5. Notice that lightmaps are incorrect
If no scene is open when doing step 3 - error will be thrown:
ArgumentException: Invalid SceneManagerSetup. No loaded scene found. No active scene found.
UnityEditor.Lightmapping.BakeMultipleScenes (System.String[] paths) (at C:/buildslave/unity/build/artifacts/generated/common/editor/LightmappingBindings.gen.cs:280)
BuildLightmapScene.BuildTest () (at Assets/BuildLightmapScene.cs:30)
Baking by placing multiple scenes in hierarchy works
Regression from 5.2
Comments (2)
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
- [Quest] Pitch Shifter causes audio degradation on Quest 2 devices when sped up
- "GUI Error: Invalid GUILayout" and "NullReferenceException" are thrown when adding Scenes to "Scenes in Baking Set" in Adaptive Probe Volumes
- Inspector window not updating when switching GameObjects in Play Mode while having a VR headset connected
- "UnityException: GetName can only be called from the main thread." erors are thrown when the Shortcuts window is opened and entering Play Mode with a shortcut
- [Android] Light2D visuals stacking over frames when using RenderGraph
DavidMarchessault
Jan 15, 2016 00:50
If I preload the scenes I want to bake, it crashes to desktop. If I have a random scene open, and run my script, it outputs this in the console:
Load scene 'Assets/Scenes/MainSubscenes/Lighting.unity' time: 53.061745 ms
Opening scene 'Assets/Scenes/MainSubscenes/Lighting.unity additively'
Opening scene 'Assets/Scenes/MainSubscenes/Lighting.unity additively'
Opening scene 'Assets/Scenes/MainSubscenes/Lighting.unity additively'
Opening scene 'Assets/Scenes/MainSubscenes/Lighting.unity additively'
Opening scene 'Assets/Scenes/MainSubscenes/Lighting.unity additively'
Opening scene 'Assets/Scenes/MainSubscenes/Lighting.unity additively'
Opening scene 'Assets/Scenes/MainSubscenes/Lighting.unity additively'
Opening scene 'Assets/Scenes/MainSubscenes/Lighting.unity additively'
Opening scene 'Assets/Scenes/MainSubscenes/Lighting.unity additively'
Opening scene 'Assets/Scenes/MainSubscenes/Lighting.unity additively'
Opening scene 'Assets/Scenes/MainSubscenes/Lighting.unity additively'
Opening scene 'Assets/Scenes/MainSubscenes/Lighting.unity additively'
Opening scene 'Assets/Scenes/MainSubscenes/Lighting.unity additively'
Opening scene 'Assets/Scenes/MainSubscenes/Lighting.unity additively'
Opening scene 'Assets/Scenes/MainSubscenes/Lighting.unity additively'
It seems, for each scene in my array, it reloads the same over and over rather than iterate to the next