static void CreateWindow() { var d = Database.Instance; ItemEditorWindow window = (ItemEditorWindow)EditorWindow.GetWindow(typeof(ItemEditorWindow)); window.Show(); }
static void Init() { EnsureItemsCollection(); EnsureSpriteCollection(); gridTexture = Resources.Load("grid_4x4", typeof(Texture2D)) as Texture2D; // Get existing open window or if none, make a new one: ItemEditorWindow window = (ItemEditorWindow)ItemEditorWindow.GetWindow(typeof(ItemEditorWindow)); window.minSize = new Vector2(800, 500); window.Show(); }
static void CreateWindow() { ItemEditorWindow window = (ItemEditorWindow)EditorWindow.GetWindow(typeof(ItemEditorWindow)); window.Show(); }