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
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
- [Dragon Crashers] Build fails in U6
- [Dragon Crashers] 4 Shader error messages on import
- [Dragon Crashers] Readme text is white on light grey
- Cursor stays in front of the first character when entering text in the TextMeshPro field
- Searching in Hierarchy causes unwanted component calls
monimstar189
Jul 26, 2020 06:17
You can open the attached project and then process it. These issues can be resolved by consulting experts in the field also can be solved by taking help from https://www.resumehelpaustralia.com/. Back multiple scenes API can be resolved in this way. Thanks for sharing this with us. Keep sharing more like that.
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