Hello. When I instantiate an object, how can I have that object become a child of another object?
Thanks
var instantiatedObject = Instantiate(objectToInstantiate, whereToInstantiate, rotationOfInstantiation);
//This is what you want:
instantiatedObject.transform.parent = whereToParentIt.transform;
I believe that is how it is done, take a look at this as well.