Sorry if this a complete unity 101 question. But is it possible to create ScriptableWizards using Javascript? A real basic ‘hello world’ type of example would be really appreciated. For example how does one use DisplayWizard from within JS? I can see exactly how it is used in C#, but for the life of me I can’t get it to work in JS. Yes I would really prefer doing it in JS.
//wizards must explicitly declare the class name and extend ScriptableWizard
class WizardExample extends ScriptableWizard {
//wizard variables
var displayString : String = "Hello!";
//Menu item starts wizard
@MenuItem ("GameObject/Wizard")
static function MenuItem() {
ScriptableWizard.DisplayWizard("Title", WizardExample, "Button", "");
}
//this is called when you push the button
function OnWizardCreate() {
Debug.Log(displayString);
}
}
Note that the file name of this example script has to be WizardExample.js.
And there mustn’t be a c# equivalent to that file (i.e.: no WizardExample.cs).