Search Issue Tracker
Fixed in 3.0.0-preview.4
Fixed in 1.5.0-preview.4 , 2.1.0-preview.4
Votes
0
Found in [Package]
preview.3 - 3.0.0, preview.1 - 3.0.0
Issue ID
1207793
Regression
Yes
[TMP] MissingReferenceException is thrown on deleting Text (TMP) prefab when it is used in a hierarchy as a child object
On deleting Text (TMP) prefab from Project window causes editor to throw MissingReferenceException, after that same exception is thrown on creating/deleting any prefab(eg. Primitive GameObject Prefab), refer attached video.
Steps to repro:
1. Create a new Project
2. Hierarchy > Create > Create Empty gameobject
3. Hierarchy > Create > 3D Objects > TMP Text - TextMeshPro
4. Make prefab of "Empty gameobject" and "TMP Text - TextMeshPro"
5. Make "TMP Text - TextMeshPro" object as a child of Empty gameobject
6. Inspector > Overrides > Apply All
7. Delete "TMP Text - TextMeshPro" prefab from Project Window
Actual Result:
MissingReferenceException is thrown on deleting Text (TMP) prefab.
Expected Result:
Prefab is deleted without any exceptions.
Tested with Unity versions:
2020.1.0a17, 2019.3.0f4
Package found version: preview.3 - 3.0.0, preview.1 - 3.0.0
Package working fine version: 2.0.1
Environment:
Windows10 and macOS 10.14
Stack trace:
MissingReferenceException: The object of type 'TextMeshPro' 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.
TMPro.TextMeshPro.OnPrefabInstanceUpdate (UnityEngine.GameObject go) (at Library/PackageCache/com.unity.textmeshpro@3.0.0-preview.3/Scripts/Runtime/TMPro_Private.cs:303)
UnityEditor.PrefabUtility.Internal_CallPrefabInstanceUpdated (UnityEngine.GameObject instance) (at <abcb5714b99e4fb3a117425953eb603c>:0)
UnityEditor.ProjectBrowser:DeleteSelectedAssets(Boolean)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Test Runner’s vertical scrollbar overlaps with the up and down arrows and upper toolbar tabs when the window is minimized
- The Input Field view is not updated when deleting lines of text
- The scrollbar does not respect empty lines in the Input Field
- “Texture Atlas Viewer“ button text overlaps another button when the UI Toolkit Debugger is narrowed
- Thresholds are no longer automatically calculated after deleting Motion fields in Blendtrees
Add comment