Mecanim Problem

Can anyone tell me how to work with animator for an animation which needs no root transform ? More briefly I am working on a game where the character is running through the spline so I want to play the run animation without any transform. But with animator when I play my run animation, my character auto transforms in x and z axis slowly. Even when I play my jump animation where the character needs only root transform to y axis, the character transforms in x and z axis a little bit. How can I fix this? Any suggestion will be highly appreciated. Thank you.

Can’t you just uncheck Apply Root Motion on your Animator component?

Or, since it’s moving just a little bit, you might fix this by checking the import settings on the animation. Try ticking Bake into Pose and Based On > Original.