19 lines
406 B
C#
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;
|
|
}
|
|
}
|
|
}
|