ScriptableWizard.OnWizardUpdate Manual     Reference     Scripting  
Scripting > Editor Classes > ScriptableWizard
ScriptableWizard.OnWizardUpdate

function OnWizardUpdate () : void

Description

This 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!";
}