Where can I find out about editor programming??

There must be some help somewhere right?

I searched the forum and found only small crumbs and the manual is just api reference which is no help for a beginner.

Specifically I’m a bit bewildered by the use of static functions and how I can create object via the editor (menuItems) which can then be adjusted in the inspector…

ie…I would LOVE to see the code used for creating a cube from the menuitems list.

In the code below I get stumped as soon as I want to add a script component…because I really dont want to have to add another script component, I want this script to contain everything.

@MenuItem("GameObject/Create Other/ScrollListContainer ")

static function CreateScrollListContainer  () {  

    print("Creating scroll list container.");
	scrollListContainer = new GameObject ("Scroll List Container");
	//scrollListContainer.AddComponent ("ScrollListContainer");//I DONT WANT YET ANOTHER SCRIPT!!

}

I’m afraid editor scripting is severely lacking documentation, with even the API reference leaving you guessing what everything does. You’ll have to find out by trial and error and by spying on editor scripts made by others.

As for your specific problem of wanting to add a script and then not wanting to add a script, you’ll probably need to explain a bit clearer what it is you want to do.