Search Issue Tracker
Fixed in 2022.2.X
Fixed in 2020.3.X, 2021.2.X, 2022.1.X
Votes
3
Found in
2020.3
2020.3.3f1
2021.1
2021.2
2022.1
Issue ID
1372713
Regression
No
"NullReferenceException" error appears when creating UIDocument in UI Toolkit
How to reproduce:
1. Open attached project "hyper-ar-unity.zip"
2. In the Project window press right-click and Create>UI Toolkit>UI Document
Expected result: UI Document is created in the Project window
Actual result: Error appears in the Console window: "NullReferenceException: Object reference not set to an instance of an object"
Reproducible with: 2020.3.20f1, 2021.1.25f1, 2021.2.0b17, 2022.1.0a13
Could not test with: 2019.4.31f1 (No UI Toolkit)
Notes:
- Not reproducible in a new project
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Buttons in the Overlay Menu in the Scene View are all gray even if they're activated when Game View is maximized and minimized
- NullReferenceException is thrown when baking Adaptive Probe Volume for a Terrain with Non-GI Contributing Tree Prototypes and multiple APV objects with different LayerMasks are present on the scene
- Hands are not recognized when using Hololens 2
- "OnTriggerExit2D" is called before "OnTriggerEnter2D" when object is destroyed immediately
- Editor crashes on PrepareSpriteTilingData when exiting Play mode
Resolution Note (fix version 2022.2):
Fixed in: 2022.2.0a1
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0b5
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.9f1
Resolution Note (fix version 2020.3):
Fixed in: 2020.3.27f1