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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
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