Changed pivot due to Animation remains as it is.

I have a character with generic animation.
I change AnimatorController at runtime.
One of this controller has a default animation which changes the rotation and pivot of the character,
after that if i change to some other AnimatorController, this pivot and rotation remains as it is.
I checked with ApplyRootMotion enabled and disabled but no change. Am I missing anything?.

Thanks.

I figured it out.
It was due to AnimationClip. Some AnimationClip just do not change the pivot and some do, so maybe its like keyframes for animation some just do not change the pivot. I found another animation which changed the pivot so before transiting to target animation I first changed it to this other animation and then target animation which fixed it.

currentAnimation → other which affects pivot and sets it to center → target animation.

Its not the viable workflow but saved the day. Next time make sure to set Pivot in all Animations.