static void ShowWindow() { // Get existing open window or if none, make a new one: ReplaceGameObjects window = (ReplaceGameObjects)EditorWindow.GetWindow(typeof(ReplaceGameObjects)); window.Show(); }
static void CreateWizard() { ReplaceGameObjects window = ScriptableObject.CreateInstance(typeof(ReplaceGameObjects)) as ReplaceGameObjects; window.ShowUtility(); }