- Home /
Placing GameObject as Child in Hierarchy Changes Its Position
It's as simple as the thread title. When the GameObject is in the global level of the hierarchy it stays where I've placed it in the scene, but as soon as I make it the child of another object (I've tried multiple different GameObjects)...it changes position. No matter what the parent is, it moves to the same [wrong] position. As far as I am aware, this is not a script issue and makes no sense for it to be a script issue.
Does it change the visual position or the transform? What should happen is that the visual position remains the same, but it is now going to have a transform that reflects it's local position (the vector3 relative to the parent). @modestvillain
Answer by modestvillain · Jun 19, 2014 at 02:07 AM
For posterity...
I discovered that the issue was the Animator component. I tried all sorts of things with the animation options, enabling the Animator through script, placing the object in question as the child of an empty GameObject at the origin (position 0,0,0), etc. but nothing to show for it. I just redid the animations and everything was fine.
Your answer
![](https://koobas.hobune.stream/wayback/20220613151815im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Zooming camera to child objects of .obj model 0 Answers
instantiate in hierarchy 3 Answers
Change position - cameras - slider 1 Answer
swap between 3 gameobjects mid game 0 Answers
Simulate Child Parent Relationship (parent constraint) 2 Answers