foreach(Transform child in Cube.transform){ Debug.Log("child.name is:"+child.name); } 转载于:https://www.cnblogs.com/ZeroMurder/p/5986752.html