In the picture where is “Inspector” you can see a script attached “Inventory”, in that script there is “Items” and “Equip Menu”, where is items the size is 7 of an elements and in “equip Menu” the size is 5 so i got a problem i need to trought script change “equip Menu” size to the itemsSize, how to do that?
ScreenShot: http://postimg.org/image/jtmq62kox/
Length just returns the size of the array. It doesn’t set it. You can’t use built in arrays like that. You’ll want to go with the array class which just from my brief googling looks like US has arraylist like in c#.
No, do not ever use the Array class. It’s obsolete, and won’t show up in the inspector anyway. You wouldn’t use ArrayList either, for pretty much the same reasons. (ArrayList isn’t C#, it’s .NET, and can be used in any language, not that you would.)