16 lines
230 B
C#
Raw Normal View History

2024-08-17 14:27:18 +08:00
using UnityEngine;
using UnityEngine.UI;
public class TextMain : MonoBehaviour
{
public GameObject root;
private void Update()
{
GetComponent<Text>().text = $"{root.transform.childCount}";
}
}