Search Issue Tracker
Fixed in 2022.2.X
Votes
0
Found in
2020.3
2021.2
2022.1
2022.1.0b6
Issue ID
1399998
Regression
No
[Undo] Undoing TMP input component and then adding it again throws MissingReferenceException for MeshRenderer
How to reproduce:
1. Create new project
2. Add any empty UI object to Scene
3. Select the game object and in Inspector add TMP input field (not UI type)
4. Ctrl-z once to undo that and add the same component again
5. Observe Console
Error:
MissingReferenceException: The object of type 'MeshRenderer' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
Reproduced with: 2020.3.26f1, 2021.2.7f1, 2022.1.0b6
Note: once this is done, every time you open any UI object with Mesh Renderer keeps throwing this.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Inspector elements are rendered twice when the script component is added via drag-and-drop while the HideFlags.HideInInspector property is set
- Error "Light baking failed with error code 5 (Convergence data not available while rendering lightmaps)" thrown in Console when generating lighting for specific GameObjects
- Copy and Paste options for an Animation Property value are disabled in the Right click contextual menu
- Asset is not found when searching the Label "NewLabel" in Search Window
- "Compute dispatch: missing texture ID..." and "Compute dispatch: missing UAV ID..." warnings are thrown after changing the platform in High Definition 3D template
Add comment