Search Issue Tracker
Active
Under Consideration for 6000.5.X
Votes
0
Found in
6000.5.0a6
Issue ID
UUM-133908
Regression
No
NullReferenceException & ArgumentException for UXML Preview is thrown when opening Project and then Selecting UI Document UXML Asset with Project Wide Runtime Theme Changed
Steps to reproduce:
- Open any Project and install the AI Packages via the AI Button in Editors Toolbar
- In the Project Browser create and a UI Document UXML, select it and make sure that the Preview is open in the Inspector
- Open the Project Settings for UI Toolkit and at the bottom switch the "Runtime" Theme to the "App UI - Dark - Large" Theme
- Close the Editor
- Open the same Project and select the created UI Document UXML Asset
Actual results: The Preview in the Inspector flickers, Errors are logged: "NullReferenceException: Object reference not set to an instance of an object
UnityEditor.UIElements.VisualTreeAssetEditor.DrawPreviewThemeDropdown () (at :0)"
"ArgumentException: Getting control 1's position in a group with only 1 controls when doing repaint
Aborting"
Expected results: Project Settings are loaded without Errors for the Preview Theme Dropdown
Reproducible with versions: 6000.5.0a6
Can’t test with versions: 6000.0.67f1, 6000.3.8f1, 6000.4.0b8 (No Preview Theme Dropdown menu feature)
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
- Redoing creation of Sub Scenes and Cube GameObjects in Hierarchy throws “Assertion failed on expression: 'targetScene != nullptr’” error in Console window
- Selecting “New Sub Scene” after assigning “New Scene” in Sub Scene Script Component throws “Destroying GameObjects immediately is not permitted” in the Console window
- Shader Graph "Zoom Step Size" can be set to 0 even though the zoom still works
- Enabling/Disabling the Deprecated Nodes doesn't apply to the opened Shader Graph unless any Variable is added to the Blackboard
- Group Selection title text size is smaller in renaming than the actual font size
Add comment