Search Issue Tracker
Fixed
Fixed in 6000.0.36f1, 6000.1.0b3, 7000.0.0a17
Votes
1
Found in
6000.0.25f1
6000.1.0a2
Issue ID
UUM-85465
Regression
No
"NullReferenceException" is logged when adding a visual element to a list using the Item Template setting
Reproduction steps:
1. Open the attached “BugRepro” project
2. Open the “Assets/UI/MainMenu“ Visual Tree Asset using the UI Builder
3. In the UI Builder window Hierarchy tab, select “Container > SinglePlayerMenu > GameCreationMenu >Horizontal > SettingsWindow > GameSettings > unity-tab-view__content-container > Factions > unity-tab_content-container > FactionList” visual element
4. In the Inspector tab, observe the selected Item Template setting
5. In the Viewport tab, press “Preview”
6. Select the “$FactionSettings“ tab
7. Press the plus sign to add an element to the list
8. Observe the Console
Expected result: No errors are logged and a visual element with the selected Item Template appears
Actual result: “NullReferenceException” error is logged and no visual element appears
Reproducible with: 6000.0.25f1, 6000.1.0a2
Not reproducible with: 2021.3.45f1, 2022.3.51f1 (The “MainMenu” Visual Tree Asset broke due to unknown visual element types)
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Note: To easier see the “NullReferenceException” error, clear the Console before step 7
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Upload Symbols Failed" is thrown when Archive validation is being done in Xcode
- Active quality level set on a new Universal 2D project is not the default quality level when creating a new project
- Inspector Open button does nothing when navigating to a different folder with a locked asset
- Pre-generated XML serializers fail to deserialize types that use polymorphism when the Player is built with the IL2CPP scripting backend
- Editor crashes with error "Failed to present D3D11 swapchain due to device reset/removed" and Player freezes when rendering a particle system while using modified URP package on DX11
Add comment