以下の内容はhttps://baba-s.hatenablog.com/entry/2020/02/28/090000より取得しました。


【Unity】同じコンポーネントがアタッチされているゲームオブジェクトを検索するエディタ拡張

ソースコード

using UnityEditor;

public class Example
{
    [MenuItem( "CONTEXT/Component/Find Component" )]
    private static void FindComponent( MenuCommand command )
    {
        var type = command.context.GetType();
        SceneModeUtility.SearchForType( type );
    }
}

使い方

f:id:baba_s:20191202140607g:plain

Inspector でコンポーネントを右クリックして「Find Component」を押すと、
同じコンポーネントがアタッチされているゲームオブジェクトを検索できます




以上の内容はhttps://baba-s.hatenablog.com/entry/2020/02/28/090000より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14