hey, can i use a string variable (whichGemIGot) that is equal to a gameObjects name (Gem - Blue) ??? what i have now gets NullReferenceException
I know this is probably wrong i just cut out the bits that seemed needed to understand my situation. :P
asked Dec 28 '10 at 12:01 PM
Remember that instantiated objects have (Clone) on the end of their name by default
It'll my bet is you need to search for "Gem - Blue (Clone)" instead
answered Dec 28 '10 at 01:21 PM
Yes you can. If no child with that name exists the function will return null.
answered Dec 28 '10 at 12:06 PM