Problem description: I created a walk animation through a character. When I gave this animation to an image in Canvas, the animation could not be played normally. After a series of checks, I found that the animation playback in canvas was not normal. Canvas has to be animated, and their animation parameters are different. One is Image and the other is Sprite.
1. Below is the sprite animation
2. Below is the animation within the UI
Solution:
For these two types of animations, we need to use two different anim controllers and corresponding anim animations