Unity3d杂记:获取所有子物体

foreach (Transform child in transform)
{
    Debug.Log(child.gameObject.name);
}


你可能感兴趣的:(unity3d)