Search Issue Tracker
Fixed
Fixed in 6000.3.0b8, 6000.4.0a4
Votes
0
Found in
6000.3.0b5
6000.4.0a2
Issue ID
UUM-121661
Regression
Yes
NullReferenceException & Assertion failed Errors logged and UI Builder Window Breaks when Editing Style Selector in Play Mode
Steps to reproduce:
- Open any Project (Reproduction was with HDRP) & Import the attached Unity Asset Package
- Open Scene "Enemy Plates" and select "EnemyNamePlate" in the Hierarchy
- Open the UI Document that's assigned to it
- Enter Play Mode
- Select the bottom Style Selector and change Text Color to any other Color
- Close the UI Builder Window and Save
- Open the UI Document again and observe the Console and UI Builder Window
Actual results: Errors "Assertion failed
UnityEngine.UIElements.VisualTreeStyleUpdaterTraversal:TraverseRecursive (UnityEngine.UIElements.VisualElement,int)
Unity.UI.Builder.BuilderVisualTreeStyleUpdaterTraversal:TraverseRecursive "
&
"NullReferenceException: Object reference not set to an instance of an object
UnityEngine.UIElements.VisualTreeStyleUpdaterTraversal.ProcessMatchedRules (UnityEngine.UIElements.VisualElement element, System.Collections.Generic.List`1[T] matchingSelectors) (at <652ff8c3d9f84f3faf38e12baa95e383>:0)"
are logged, the UI Builder for that Asset Brakes, resetting layout via right click fixes the issue after a couple tries, but opening it again produces same issues. Workaround is to create a new document or open a different document.
Expected results: UI Builder handles edits in Play Mode gracefully
Reproducible with versions: 6000.3.0a5, 6000.3.0b5, 6000.4.0a2
Not reproducible with versions: 6000.0.59f1, 6000.1.17f1, 6000.2.8f1, 6000.3.0a4
Tested on (OS): Windows 11
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Warnings in the Bug Reporter window are cut off and not truncated when the Bug Reporter window is resized to its minimum size
- Color is incorrectly applied to objects when initialized with non-normalized parameters
- SerializationUtility.GetManagedReferencesWithMissingTypes() don't return null when “Prefab has missing SerializeReference Types“ warning banner is present
- Memory leak when VFX Graph is open and Camera has "Target Texture" enabled
- The Canvas component's warning box is missing an apostrophe when Additional Shader Channels is set to "Normal" and "Tangent" with Render Mode set to "Screen Space - Overlay"
Add comment