Need to set a texture variable to be the length of a game object variable. How do I do that? I thought I could just use lists and resize it in start ie
var items : List.<GameObject>;
var icons : List.<Texture>;
icons.Count = items.Count; // need something like this in Start function
this works to set the length, but I’m using it for a gui selection grid and get a console error at this line
lineupInt = GUI.SelectionGrid (Rect (0 , 0, boxwidth, boxheight), lineupInt, icons, 3);
the setup I have is to make a selection grid representing the player’s inventory items icons.
Please DO NOT suggest arrays. I’m trying to get off using them. Thanks