- Home /
Question by
Bibrosko · Dec 12, 2017 at 09:28 PM ·
prefabsparentchildtransform.parent
transform.parent to swap prefabs?
i'm using the function
Cube2.transform.parent=Cube1.transform
to substitute a idle parent Game Object with a second one with a constant force applied, in order to make the child to inherit the force. The switching works fine but on game play start the new parent starts automatically to move so that it won't affect my child anymore. I guess i'd have to use prefabs to being applied instead but i didn't find anything working so far.
Comment
Your answer
Follow this Question
Related Questions
Make a simple tree 1 Answer
undoing parenting of object's transform 1 Answer
get the OnCollisionEnter or Stay from the parent? 2 Answers
Spawn inside of a parent 1 Answer
Get Child from a parent 3 Answers