DRHPS/code-csharp/zh_CN/TEXTUI_SubmeshChecker.cs
2025-04-08 11:31:35 +08:00

19 lines
406 B
C#

using TMPro;
using UnityEngine;
public class TEXTUI_SubmeshChecker : MonoBehaviour
{
[SerializeField]
private TextMeshProUGUI TextUI;
private void Update()
{
if (TextUI.transform.childCount > 0)
{
Debug.LogWarning("Submesh TextMeshPro Detected");
Debug.LogWarning(TextUI.text);
base.enabled = false;
}
}
}