void OnWizardCreate() { EditorUtility.DisplayProgressBar(wizardTitle, "Creating folders...", 0.3f); // Setup folder locations string filePath = GetFolder(); // create missing folders WizardUtilities.CreateFolderIfNotExists(filePath); AssetDatabase.Refresh(); EditorUtility.DisplayProgressBar(wizardTitle, "Taking Screenshot...", 0.6f); TakeAndSaveSnapshot(filePath); EditorUtility.DisplayProgressBar(wizardTitle, "Refreshing Asset Database...", 0.9f); AssetDatabase.Refresh(); EditorUtility.ClearProgressBar(); EditorUtility.DisplayDialog(wizardTitle, wizardTitle + " Complete! The screenshot image can be found at " + filePath, "OK"); }