Search Issue Tracker
Active
Under Consideration for 6000.0.X, 6000.2.X, 6000.3.X, 6000.4.X
Votes
0
Found in
6000.0.60f1
6000.2.8f1
6000.3.0b6
6000.4.0a2
Issue ID
UUM-121931
Regression
No
“Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
Steps to reproduce:
1. Create new Unity project using empty URP 3D Template
2. In Hierarchy window right-click in SampleScene
3. Select “Add New Scene”
4. Save the Scene/project
5. Right-click on newly created Scene in Inspector window
6. Select “Unload Scene”
7. Right-click again
8. Select Prefab > Remove Unused Overrides
9. Observe the Console window
Actual results: warning is thrown “ArgumentException: The scene is not loaded.”
Expected results: user should not be able to select to Remove Unused Overrides in not loaded Scene
Reproducible with versions: 6000.0.60f1, 6000.2.8f1, 6000.3.0b6, 6000.4.0a2
Tested on (OS): macOS Silicon, Tahoe 26.0 (M1)
Error:
ArgumentException: The scene is not loaded.
UnityEngine.SceneManagement.Scene.GetRootGameObjects (System.Collections.Generic.List`1[T] rootGameObjects) (at /Users/bokken/build/output/unity/unity/Runtime/Export/SceneManager/Scene.cs:106)
UnityEngine.SceneManagement.Scene.GetRootGameObjects () (at /Users/bokken/build/output/unity/unity/Runtime/Export/SceneManager/Scene.cs:90)
UnityEditor.PrefabUtility.GetScenePrefabInstancesWithNonDefaultOverrides (UnityEngine.SceneManagement.Scene scene) (at /Users/bokken/build/output/unity/unity/Editor/Mono/Prefabs/PrefabUtility.cs:415)
UnityEditor.PrefabUtility.RemoveAllPrefabInstancesUnusedOverridesFromScene (UnityEngine.SceneManagement.Scene scene) (at /Users/bokken/build/output/unity/unity/Editor/Mono/Prefabs/PrefabUtility.cs:403)
UnityEditor.PrefabUtility.RemoveAllPrefabInstancesUnusedOverridesFromSceneForMenuItem (System.Object userData) (at /Users/bokken/build/output/unity/unity/Editor/Mono/Prefabs/PrefabUtility.cs:393)
Unity.Hierarchy.Editor.HierarchySceneHandler.RemoveAllPrefabInstancesUnusedOverridesFromSceneForMenuItem (UnityEngine.UIElements.DropdownMenuAction obj) (at /Users/bokken/build/output/unity/unity/Modules/HierarchyEditor/ScriptBindings/HierarchySceneHandler.bindings.cs:306)
UnityEngine.UIElements.DropdownMenuAction.Execute () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/DropdownMenu.cs:224)
UnityEditor.UIElements.EditorMenuExtensions+<>c__DisplayClass0_0.<PrepareMenu>b__0 () (at /Users/bokken/build/output/unity/unity/Editor/Mono/UIElements/EditorMenuExtensions.cs:36)
UnityEditor.GenericMenu.CatchMenu (System.Object userData, System.String[] options, System.Int32 selected) (at /Users/bokken/build/output/unity/unity/Editor/Mono/GUI/GenericMenu.cs:162)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Add comment