How do you dynamically parent gameobject at runtime?
You need to use the parent property on the transform:
transform.parent = anotherTransform;
How do you dynamically parent gameobject at runtime?
You need to use the parent property on the transform:
transform.parent = anotherTransform;