Hey everyone!
I have a scene which instantiates some objects from a for loop. For example, three objects all by the name of foo(clone) in the hierarchy are instantiated. I would like to set a variable inside each object seperately, so for instance the variable ‘B’ could be ‘hey!’ in one, ‘hi!’ in the second and ‘hello!’ in the third; if possible it would be best if each object could be renamed, so instead of foo(clone), foo(clone) and foo(clone) it could be hey! hello! and hi!. Is there anyway of doing one of these methods via scripting?
As a second more minor question, is it possible to get the three instantiated objects to all be children of a single game object?
Thanks! ![]()