How do I create Editor Window in Javascript to Edit different Items of the script and be able to do so on different game objects.
test.js
#pragma strict
var name : int =1;
function Start () {
}
function Update () {
}
And Then In The Editor Folder Folder I Have TestWindow.js
class Test extends EditorWindow {
function OnGUI() {
EditorGUILayout.LabelField("Modify Name Value");
EditorGUILayout.IntField("Update # Names:", name);
if(GUILayout.Button("Close"))
{
this.Close();
}
}
function OnInspectorUpdate() {
Repaint();
}
@MenuItem("Example/Randomize Children In Selection")
static function Init ()
{
// Get existing open window or if none, make a new one:
var window = ScriptableObject.CreateInstance.<Test>();
window.Show();
}
}
I get this error with the editor script