ソースコード
使用例
using UnityEditor; public static class Example { [MenuItem( "Tools/Example1" )] public static void Example1() { EditorUtils.SetSearchFilter( "t:Camera" ); } [MenuItem( "Tools/Example2" )] public static void Example2() { EditorUtils.SetSearchFilter( "Light", EditorUtils.FilterMode.NAME ); } [MenuItem( "Tools/Example3" )] public static void Example3() { EditorUtils.SetSearchFilter( "Collider", EditorUtils.FilterMode.TYPE ); } }