1,使用GetComponentsInChildren来完成
Transform[] tran = gameObject.GetComponentsInChildren<transform>();
2,使用Find来完成:
transform.Find()
3,使用GetChild()
transform.GetChild()
1,使用GetComponentsInChildren来完成
Transform[] tran = gameObject.GetComponentsInChildren<transform>();
2,使用Find来完成:
transform.Find()
3,使用GetChild()
transform.GetChild()