public static void Init(int prefabID = -1) { // Get existing open window or if none, make a new one: window = (NewCollectibleEditorWindow)EditorWindow.GetWindow(typeof(NewCollectibleEditorWindow), false, "Collectible Editor"); window.minSize = new Vector2(420, 300); LoadDB(); //InitLabel(); if (prefabID >= 0) { window.selectID = TBEditor.GetCollectibleIndex(prefabID) - 1; } window.SetupCallback(); }