[CustomEditor(typeof(Hoge))] public class HogeEditor : Editor { public override void OnInspectorGUI() { MonoScript script = MonoScript.FromScriptableObject(this); script = EditorGUILayout.ObjectField(script, typeof(MonoScript), false) as MonoScript;
とやればEditor自体もScriptに出せる。 EditorもScriptableObjectの派生のようだ https://anchan828.github.io/editor-manual/web/scriptableobject.html