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
- Standard Unity Materials and Shaders become corrupted after importing specific Asset Packages
- [Linux][OpenGL][Vulkan] Draw calls are not shown in the Event List when taking a capture of a frame with RenderDoc
- Inaccurate collision detections when Rigidbody Collision Detection is set to "Continuous" or "Continuous Dynamic"
- Crash on Object::IncrementPersistentDirtyIndex when upgrading project version
- [iOS] Multiple Xcode project instances created before opens up when performing Build and Run for iOS Platform
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