Unity Issue Tracker - Warning "Please assign a Font Asset to this Text (TMP) gameobject" thrown when re-importing TMP Essential Resources
Closed
UUM-47791
Warning "Please assign a Font Asset to this Text (TMP) gameobject" thrown when re-importing TMP Essential Resources
Unity: Text (TextMeshPro)
Won't Fix
2023.3.X
2023.2.X
2023.1.X
2022.3.X
2021.3.X
Deleting the resources while importing is not a workflow we plan to support. After importing the resources, entering and exiting play mode fixes the issue.
How to reproduce:
1. Open any Project and create a TMP Asset in the Hierarchy
2. When prompted import TMP Essential Resources
3. Delete the TMP Essential Resources folder from Assets
4. Reimport the TMP Essential Resources and select the GameObject in Hierarchy
5. Observe the Console
Expected result: Since the Assets the Warning is mentioning are assigned and functioning, no Warnings should be thrown
Actual result: Warning is logged in the Console even though the Font Asset is assigned "Please assign a Font Asset to this Text (TMP) gameobject.
UnityEngine.Debug:LogWarning (object,UnityEngine.Object)
TMPro.TextMeshProUGUI:OnPreRenderCanvas () (at ./Library/PackageCache/com.unity.ugui@2.0.0/Runtime/TMP/TextMeshProUGUI.cs:239)
TMPro.TextMeshProUGUI:Rebuild (UnityEngine.UI.CanvasUpdate) (at ./Library/PackageCache/com.unity.ugui@2.0.0/Runtime/TMP/TextMeshProUGUI.cs:223)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)"