Search Issue Tracker
Fixed
Fixed in 2022.3.63f1, 6000.0.50f1, 6000.1.2f1, 6000.2.0a8
Votes
0
Found in
2022.3.59f1
6000.0.41f1
6000.1.0b9
6000.2.0a6
Issue ID
UUM-99290
Regression
No
Assertion error is thrown and UI is no longer rendered when discarding the changes made to the selectors overriding the default controls
How to reproduce:
1. Open the attached "UIToolkitBug" project
2. Go to Assets -> UI and open the "SettingsUI.uxml" Asset
3. Under the StyleSheets, expand the "OverrideDefault.uss"
4. Select the "unity-toggle_checkmark" Selector
5. In the Inspector, change the Background to any color
6. Close the UI Builder window and press "Discard" in the pop-up
7. Observe the results
Expected results: No errors are thrown
Actual results: Assertion and IndexOutOfRange errors are thrown
Reproducible with: 2022.3.59f1, 6000.0.41f1, 6000.1.0b9, 6000.2.0a6
Reproducible on: macOS Sequoia 15.3 (M1)
Not reproducible on: No other environment tested
Notes:
- After that, errors might be thrown on reopening the same Asset
- Not reproducible if changes are made when the UI Builder window opens together with the project. The Asset should be reopened
- After the errors, all UI in the scene is no longer rendered until you restart the proejct
Full errors:
- Assertion failed
UnityEditor.EditorApplication:Internal_CallUpdateFunctions () (at /Users/bokken/build/output/unity/unity/Editor/Mono/EditorApplication.cs:384)
- IndexOutOfRangeException: Index was outside the bounds of the array.
UnityEngine.UIElements.StyleSheets.StylePropertyReader.SetCurrentProperty () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/StyleSheets/StylePropertyReader.cs:652)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Quest] Pitch Shifter causes audio degradation on Quest 2 devices when sped up
- "GUI Error: Invalid GUILayout" and "NullReferenceException" are thrown when adding Scenes to "Scenes in Baking Set" in Adaptive Probe Volumes
- Inspector window not updating when switching GameObjects in Play Mode while having a VR headset connected
- “UnityException: GetInvalidFilenameChars” errors are thrown, and the Overlay Save Preset button becomes unusable when entering Play Mode with a shortcut while Overlay Save Preset window is opened
- "UnityException: GetName can only be called from the main thread." erors are thrown when the Shortcuts window is opened and entering Play Mode with a shortcut
Add comment