Copyright © 2026 Unity Technologies
Steps to reproduce:
1. Create new Unity project using Universal 3D Template
2. In Hierarchy create Visual Element object (Right-click > UI Toolkit > Standard Elements > Visual Element)
3. In “Open UI stage” pop-up press “Continue” and save UXML file
4. In Inspector window press on kebab (⋮) button while Visual Element is selected and select “Debug”
5. Press “Exit Debug” button
6. Observe the Console window
Actual results: “ArgumentOutOfRangeException: Specified argument was out of the range of valid values.” Error is thrown in the Console window when exiting Debug mode in the Inspector window. The Inspector window becomes broken, the selected Visual Element can no longer be edited
Expected results: No errors are thrown in the Console window, UI Element editing is fully functional in Inspector window after exiting Debug mode
Reproducible with versions: 6000.6.0a7
Can’t test with versions: 6000.6.0a6 and lower (No such feature to create UI Elements in Hierarchy window)
Tested on (OS): macOS Tahoe 26.4.1
ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Unity.UIToolkit.Editor.VisualElementInspector.SetEditFlags (Unity.UIToolkit.Editor.VisualElementEditFlags editFlags) (at /Users/bokken/build/output/unity/unity/Modules/UIToolkitAuthoringEditor/Managed/Hierarchy/Selection/Editor/VisualElementInspector.cs:189) Unity.UIToolkit.Editor.VisualElementInspector.set_EditFlags (Unity.UIToolkit.Editor.VisualElementEditFlags value) (at /Users/bokken/build/output/unity/unity/Modules/UIToolkitAuthoringEditor/Managed/Hierarchy/Selection/Editor/VisualElementInspector.cs:99) Unity.UIToolkit.Editor.VisualElementSelectionEditor.ApplyState () (at /Users/bokken/build/output/unity/unity/Modules/UIToolkitAuthoringEditor/Managed/Hierarchy/Selection/Editor/VisualElementSelectionEditor.cs:98) Unity.UIToolkit.Editor.VisualElementSelectionEditor.CreateInspectorGUI () (at /Users/bokken/build/output/unity/unity/Modules/UIToolkitAuthoringEditor/Managed/Hierarchy/Selection/Editor/VisualElementSelectionEditor.cs:125) UnityEditor.UIElements.InspectorElement.CreateInspectorElementUsingUIToolkit (UnityEditor.Editor targetEditor) (at /Users/bokken/build/output/unity/unity/Editor/Mono/UIElements/Inspector/InspectorElement.cs:697)
Issues you vote on will appear here