Blue_Breath_Blog

オブジェクト

C#

【Unity】兄弟オブジェクトを全て取得する。

自身を含まない親オブジェクトの子階層を取得する。Rootの時は取得しません。コード上段のコードは本体、適当なフォルダを選びコピーペーストで導入可能。 GameObject[] brothers = gameObject.GetAllBrot...
2019.06.05 2020.05.16
C#Unity
C#

子オブジェクトをすべて取得する。

パフォーマンスに問題があります。 GetAllChildrenスクリプトは適当なフォルダに入れる。 gameObject.GetAllChildren() で子オブジェクト全てを取得できる。2個目の GetAllChildrenTest ス...
2019.06.05 2020.04.05
C#
Blue_Breath_Blog
  • プライバシーポリシー
  • About
Author 2019-2025 Blue_Breath_Blog
  • ホーム
  • トップ