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
- [iOS] WebCamDevice.availableResolutions returns a single resolution with width and height both 0 on some iOS devices
- Editor freezes when selecting a GameObject in Play Mode with a script containing a public byte array
- Saving moves Toggle Button Group buttons to the wrong place in hierarchy
- [iOS] Visual artifacts are visible when the camera's feed is rendered to a texture
- Error "cannot map expression to ps_4_0 instruction set" in Shader Graph preview when using the GATHER_RED_TEXTURE2D macro in custom hlsl function
Add comment