ScriptableWizard.OnWizardUpdateScripting > Editor Classes > ScriptableWizardfunction OnWizardUpdate () : voidDescriptionThis is called when the wizard is opened or whenever the user changes something in the wizard. This allows you to set the helpString, errorString and enable/disable the Create button via isValid. See Also: ScriptableWizard.DisplayWizard void OnWizardUpdate () {
// Set the help string helpString = "Please set the color of the light!"; // Disable the wizard create button isValid = false; // And tell the user why errorString = "You absolutely must set the color of the light!"; } |