- Home /
How to transform position of object A to object C (C is a child of B object)
How to transform position of object A to object C (C is a child of B object)
I try using transform.position but the child position and the object outside parent position are not the same.
This should do it for you
transformB.SetParent(transformA, false);
Answer by mateo4632 · Dec 23, 2016 at 04:06 AM
Since object C is a child of object B, set the position of object A to object B. Or you could set object A to a child of object B, then set the transform the same as object C, then finally unset object A's parent. If you need an example script please let me know!
Your answer

Follow this Question
Related Questions
Unit Formation Aligns to a Reset Forward Position Rather Than Parent Object's Rotation 1 Answer
Rotate Parent using Child as Pivot 0 Answers
How to add a teleportation mechanic like ender pearls in Minecraft 0 Answers
Parenting a child to move on only one Axis ! 2 Answers
C# 2D platformer: How to have player always face center? 0 Answers