using UnityEngine;
using System.Collections;
public class TestDIGUI : MonoBehaviour
{
public Transform[] gb;
void Start ()
{
gb = GetComponentsInChildren<Transform>();
foreach (Transform m in gb)
{
Debug.Log(m);
}
}
}
遍历所有子物体 递归
最新推荐文章于 2024-05-10 17:20:38 发布