Hi
I have an array of gameobjects created via the inspector (e.g. var stuff : GameObjects[ ]).
I’m still trying to get my head around arrays etc, and not sure how to do the following.
I need to match a word to the corresponding (same name) gameObject in the stuff[ ] array. I know that the array stores numbers as references to each gameObject, so figure there must be a way to look through the array to find the corresponding number.
So, as an example:
var previousSelection : String = “Dog”;
How do I access the gameObject, called “Dog” in stuff[ ] ??
Hope I’m making myself clear here lol… Thanks for advice.