19 lines
304 B
C#
Raw Permalink Normal View History

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