- Home /
Unity 3D : Objects that were parented under empty object are changing their position after I hit play
I was have a problem with my pivot point of game object so I used this solution.
Creating new empty object then setting it position to the position I want then parented it to my objects.
Then created my sphere collider and nav mesh agent.
This is how it looks before clicking play:
And this is after clicking play. If I add a new object as a child of the same parent it goes to the right position, but my old objects keep changing position after I click play.
This should not have anything to do with parenting by itself. The position must be being changed in an animation, script, or some other component. Just having an item as a child of another will not cause it to change position. Do you have any scripts or animations that are on or affect the child objects? Do any of the child objects have a Rigidbody?
Your answer
Follow this Question
Related Questions
GameObject with 0,0,0 position not being in the center 5 Answers
Position of parent from grandchild 1 Answer
Getting the topmost parent 1 Answer