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
- [RayTracing] Impossible to identify individual instances added using RTAS.AddInstances in a compute shader when using ray queries.
- [Linux] "Error: Attempting to resolve render surface with no resolve target specified." error is thrown after creating a Mixed Reality or VR Multiplayer template project
- [Android] The Input on the UI is not decoupled from the frame rate when using the "OnDemandRendering" method
- It is not possible to hide the toolbar of the Game window when observed in 2022.2 or later streams
- WebGPU error When over 2GB memory consumption
Add comment