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
- Search field in UI Builder's Library has no character limit
- Changing the value in UI Builder by dragging increases it by a few thousand points when reaching the borders of the screen
- ARM64 architecture DLL incorrectly copied instead of x64 when building for Windows x64
- Crash on TypeTreeIterator::GetNode when opening a specific folder
- Crash on WriteSerializedAssetsV2 when (re)entering the Play Mode in a specific project when IEnumerator Start() is used
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