指定したGameObject直下のGameObjectだけを返す関数。
|
1 2 3 4 5 6 7 8 |
public List<GameObject> GetChildGameObject(GameObject parentObj) { List<GameObject> childrenObj = new List<GameObject>(); foreach (Transform child in parentObj.transform) { childrenObj.Add(child.gameObject); } return childrenObj; } |





![[AIR] stageWebView](https://i0.wp.com/mizutanikirin.net/blog/wp-content/uploads/2015/09/air1.jpg?resize=150%2C150)

コメントを残す