Animator.Play Changes Avatar Motion

Every time during the Update() function call, I call Animator.Play(clip_name, -1, time). This is to ensure that the Update call is synced with the fbx animation file. Sometimes this works perfectly but at other times, the motion of the avatar changes completely. I don’t change any parameters. Any help would be appreciated

If the Animator variable is an Animator, the Play() argument does not take a clip_name but rather a state_name.

Is that your issue? The clip is associated with a state in the animator, which COULD be named the same, but not necessarily.

Also you might want to consider using properties to control how to state changes happen.

Thanks. Even when I use the state name, the issue persists. The state name and clip name are same. I want to animate an avatar using an fbx file and store some parameters of the avatar. The number of calls to Update and the frames of the fbx file are not in sync. So I use animator.Play to start the clip at a time that synchronizes Update Calls and the fbx frames. If there is any other way to specify the start time of an animation clip, could you please let me know

I’m not sure you’re supposed to be hammering on Play() that way, not even sure it behaves well if you do.

Generally the entire point of animation is to fire it off and forget about it.

I don’t know what this even means or why this would even be important based on how I have used animations all my life.