Last active
August 29, 2015 14:01
-
-
Save takashicompany/fd6225738d042c318559 to your computer and use it in GitHub Desktop.
foreach (Transform child in gameObject.transform)でgameObjectの子オブジェクトを参照する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foreach (Transform child in gameObject.transform) | |
{ | |
// gameObjectの子オブジェクト(child)を操作できる | |
// 子だけで、孫(子の子)は含まれない | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment