Not signed in
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. Dock the opened Style Sheet window
5. In the Style Sheets window, press "+" to create a new USS file, name it “test”
6. Select “test.uss” in Style Sheets window
7. In Inspector, under Imports, type “3” into the value field
8. Press Enter
9. Observe the Console window
Actual results: “ArgumentOutOfRangeException” errors are thrown in the Console window
Expected results: No errors are thrown in the Console when changing the Imports count value for a Style Sheet in the Inspector
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 (M1)
Notes:
ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: index UnityEngine.UIElements.StyleSheet.GetStyleSheetImportAtIndex (System.Int32 index) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/StyleSheets/StyleSheet.cs:282) Unity.UIToolkit.Editor.StyleSheetInspector.<ConfigureImportsListView>b__15_1 (UnityEngine.UIElements.VisualElement element, System.Int32 i) (at /Users/bokken/build/output/unity/unity/Modules/UIToolkitAuthoringEditor/Managed/Hierarchy/Selection/Editor/StyleSheetInspector.cs:90) UnityEngine.UIElements.ListViewController.BindItem (UnityEngine.UIElements.VisualElement element, System.Int32 index) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Collections/Controllers/ListViewController.cs:47) UnityEngine.UIElements.CollectionViewController.InvokeBindItem (UnityEngine.UIElements.ReusableCollectionItem reusableItem, System.Int32 index) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Collections/Controllers/CollectionViewController.cs:184) UnityEngine.UIElements.BaseListViewController.InvokeBindItem (UnityEngine.UIElements.ReusableCollectionItem reusableItem, System.Int32 index) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Collections/Controllers/BaseListViewController.cs:199) UnityEngine.UIElements.VerticalVirtualizationController`1[T].Setup (T recycledItem, System.Int32 newIndex) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Collections/Virtualization/VerticalVirtualizationController.cs:235) UnityEngine.UIElements.FixedHeightVirtualizationController`1[T].Resize (UnityEngine.Vector2 size) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Collections/Virtualization/FixedHeightVirtualizationController.cs:149) UnityEngine.UIElements.BaseVerticalCollectionView.Resize (UnityEngine.Vector2 size) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Controls/BaseVerticalCollectionView.cs:1416)
Sign in to see your voted issues