I would like the wizard not to close if the user attempts to click “Create”, and certain requirements are not fulfilled.
Example Code:
void OnWizardCreate()
{
if (Category != "")
{
PrefabUtility.CreatePrefab("Assets/Resources/" + ArtifactName + ".prefab", upcommingArtifact);
}
else
{
//Do not close line goes here
EditorUtility.DisplayDialog("No Category Given", "The cetegory needs to be set", "Ok");
}
}