ソースコード
using System.Reflection; using UnityEditor; public static class Hoge { [MenuItem( "Hoge/Fuga" )] public static void Fuga() { var asm = Assembly.GetAssembly( typeof( EditorWindow ) ); var type = asm.GetType( "UnityEditor.PreferencesWindow" ); var method = type.GetMethod( "ShowPreferencesWindow", BindingFlags.NonPublic | BindingFlags.Static ); method.Invoke( null, null ); } }