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

static function DisplayWizard (title : string, klass : System.Type, createButtonName : string = "Create", otherButtonName : string = "") : ScriptableWizard

Parameters

NameDescription
title The title shown at the top of the wizard window.
klass The class implementing the wizard. It has to derive from ScriptableObject.
createButtonName The text shown on the create button.
otherButtonName The text shown on the optional other button. Leave this parameter out to leave the button out.

Returns

ScriptableWizard - The wizard.

Description

Creates a wizard.

When the user hits the Create button OnWizardCreate function will be called. DisplayWizard will only show one wizard for every wizard class.