Search Issue Tracker
Duplicate
Votes
0
Found in
5.5.0b11
Issue ID
852705
Regression
Yes
Selecting game object in the hierarchy after adding Text component via script throws null ref exception
Steps to reproduce:
1. Open attached project "componenttest.zip"
2. Open "1" scene
3. Enter play mode
- Object is created via script and in addition a Text component is added to it
4. Select "empty" game object in the Hierarchy
Result: Null Reference Exception is thrown
Reproduced with: 5.5.0a3, 5.5.0f2, 5.6.0a3
Not reproducible with: 5.4.3f1, 5.5.0a2
Regression introduced in 5.5.0a3
Note: error doesn't get printed out when adding a different UI object (button, inputfield, image etc.)
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
This is a duplicate of issue #845756