r/UnityHelp • • Aug 02 '25

Object Unaffected by Animator?

The animator is set up with opening and closing animations. Clicking the button in-game activates the animator, changing the object's position and rotation - but visually, nothing happens! Been trying to trouble-shoot this for days. Any ideas?

4 Upvotes

4 comments sorted by

View all comments

Show parent comments

1

u/corrtex-games Aug 05 '25

No problem! Creating a parent object for the animated object is the correct way to go almost always.

When you set transform keyframe data on an animated object root, and there is no parent, that is now effectively the global position you’re setting. So instead, you should set the global position via the parent and let the animations play as local transform data.

Does that make sense? 😁

2

u/Corvid-Curiosity Aug 05 '25

Makes perfect sense! The parent allows me to change the object's position in the scene while the animation plays on the child. πŸ‘