using System; using System.Runtime.CompilerServices; using BansheeEngine; namespace BansheeEditor { public class EditorWindow : ScriptObject { protected EditorGUI GUI; public static EditorWindow OpenWindow() where T : EditorWindow { return Internal_CreateOrGetInstance(typeof(T).Namespace, typeof(T).Name); } protected EditorWindow() { GUI = new EditorGUI(this); } [MethodImpl(MethodImplOptions.InternalCall)] private static extern EditorWindow Internal_CreateOrGetInstance(string ns, string typeName); } }