如果想获取一级子节点 1 foreach (Transform child in this.transform) 2 { 3 Debug.Log(child.name); 4 } View Code 相关文章: