| 123456789101112131415161718192021222324 |
- using System;
- using System.Runtime.CompilerServices;
- using BansheeEngine;
- namespace BansheeEditor
- {
- public class EditorWindow : ScriptObject
- {
- protected EditorGUI GUI;
- public static EditorWindow OpenWindow<T>() 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);
- }
- }
|