Created
August 12, 2014 01:04
-
-
Save baobao/0f106e11ca5342b3a8ba to your computer and use it in GitHub Desktop.
GetComponentsInChildren<T>は、自分自身を含めたリストが返ってくる
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
// 自分を含めたリストが返る | |
var arr = transform.GetComponentsInChildren<Transform> (); | |
for (int i = 0; i < arr.Length; i++) { | |
Debug.Log (arr [i]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment