うにてぃブログ

主にUnityとC#に関する記事を書いていきます

2020-04-03から1日間の記事一覧

【Unity】Inspector に GetComponentInChildren を行うボタンを追加する

Inspector にオブジェクトをアタッチするのが面倒なことがあるので、 ボタンひとつで GetComponentInChildren してくれる拡張を作成 コード using System.Linq; using System.Reflection; using UnityEditor; using UnityEditor.IMGUI.Controls; using Unity…