k, so i’ve been following this(Unity Tutorial 05: Part 2: "3D Menus" - YouTube), and i seem to have a problem. i can’t get the ‘menuItems’ array in the ‘MenuManager’ script to show up in the inspector after attaching it to the ‘MenuManager’ game object.
Here’s my code:
var menuItems:MenuItem[]; //list of MenuItem(s)
var currentMenuItem:int = 0;
function Update()
{
if(Input.GetAxisRaw("Vertical") > 0.9)
{
currentMenuItem--;
if(currentMenuItem < 0) currentMenuItem = 0;
}
else if(Input.GetAxisRaw("Vertical") < -0.9)
{
currentMenuItem++;
if(currentMenuItem >= menuItems.length) currentMenuItem = menuItems.length - 1;
}
}