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!!
}