複数の子供ObjectのComponentを配列に取得するやり方

「複数の子供ObjectのComponentを配列に取得するやり方」の編集履歴(バックアップ)一覧はこちら

複数の子供ObjectのComponentを配列に取得するやり方 - (2015/05/29 (金) 20:21:14) の1つ前との変更点

追加された行は緑色になります。

削除された行は赤色になります。

private Rigidbody2D[] rigidbody2Ds; rigidbody2Ds = GetComponentsInChildren<Rigidbody2D>(); 現在のGameObjectの子供のObjectのComponentをまとめて取得して、Componentの配列に代入している
private Rigidbody2D[] rigidbody2Ds; rigidbody2Ds = GetComponentsInChildren<Rigidbody2D>(); 現在のGameObjectの子供のObjectのComponentをまとめて取得して、Componentの配列に代入している

表示オプション

横に並べて表示:
変化行の前後のみ表示: