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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Add comment