Hello,
I am trying to make an object attach to an object when it collides with it. It doesn’t actually have to physically attach but what code would be used to make it a child of the object it is attached to. I have tried making the objects go together to look they are attached and make them have identical move scripts. The animations would just look weird. So again how would make a object become a child of another object through script in the game. Thank you in advance.
Hi, did you try the transform.SetParent() function?