public static void ShowEditor() { instance = (FV_Tools)EditorWindow.GetWindow(typeof(FV_Tools)); instance.titleContent = new GUIContent("ForestVision Tools"); instance.autoRepaintOnSceneChange = true; instance.titleContent = new GUIContent("FV Tools"); //instance.maxSize = new Vector2(846f, 600f); //instance.minSize = instance.maxSize; }
[MenuItem("Tools/ForestVision/FV Tools", false, 30)]//access to everything private static void ShowTools() { FV_Tools.ShowEditor(); }