Created
May 13, 2014 16:35
-
-
Save takashicompany/9091a190af859d9b023e to your computer and use it in GitHub Desktop.
foreach (Transform child in gameObject.transform)でgameObjectの子オブジェクトを参照する
This file contains hidden or 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