Set Animation Framerate in Unity
I was having issues getting my animations to play at the right speed. After mucking around for about an hour or so I realized the problem I had was that I needed to set the sample rate of my animation, but the reason I couldn’t do this was that my Show Sample Rate option was disabled somehow and not showing.
To Show Sample Rate in the Animation pane:
- Click the … button inside the Animation Pane to open the menu
- Press Show Sample Rate
- The Samples text field shows.
The animation speed can be controlled through the Sample Rate (frame rate) or the Speed option in the Inspector when the animation state is selected in the Animator pane.
Sample Rate vs Speed
Sample rate and speed will both change the clip speeds. But sample rate seems to work in edit mode and speed only works in play mode.
Outside of this I don’t know the difference. The speed is on the property of the animation state in the Animator so it’s possible you can have different speeds on different animators.