Search Issue Tracker
Fixed
Fixed in 6000.2.6f1, 6000.3.0b3, 6000.4.0a1
Votes
0
Found in
6000.2.4f1
6000.3.0b1
Issue ID
UUM-116892
Regression
Yes
NullReferenceException and list items not saved when adding elements to List<VisualTreeAsset> UxmlAttribute in UI Builder
Reproduction steps:
1. Open the attached “IN-114385.zip” project
2. From the Project window, double-click on the “Test.uxml” to open in UI Builder
3. In the Hierarchy, select the “#WidgetInstantiator”
4. In the Inspector, under Attributes, expand the “Widget Test” list
5. Click the + icon to add new item to the list
6. Observe the Console
Expected result: No errors and list items are saved
Actual result: “NullReferenceException: Object reference not set to an instance of an object” is thrown and list items are not saved
Reproducible with: 6000.1.0a9, 6000.2.4f1, 6000.3.0b1
Not reproducible with: 6000.0.57f1, 6000.1.0a8
Reproducible on: Windows 11
Not reproducible on: no other environments tested
Note:
- Lists of primitive types (e.g., List<int>) work correctly
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Add comment