I’ve been watching a fair amount Brackey’s videos on YouTube lately to help learn Unity. And I’ve seen him reference the sample rate within the animation window. However, when I loaded up my version of Unity, the samples panel was missing from the animation window. After a quick search, it doesn’t seem like I’m the only one having this issue. So here’s what you can try to solve it.
Open the Animation Panel
The first thing you need to do is launch your version of Unity. Here, I’m working in Unity version 2020.3.24f1. The process should be similar in other versions, but may not follow this process exactly.
Once Unity is started, open up your project. If you don’t already have the animation window open, you can open it by selecting Window > Animation > Animation. Alternatively, you can use the hotkey Ctrl/Cmd + 6.
Adjust the Animation Panel Settings
Now that you have the animation window open, we need to adjust the settings. In the animation window, look in the upper right corner. You should see 2 sets of triple dots. We do not want the set on the top row. Instead, click the lower set of dots. A small panel should pop out. There, you should see the option the Show Sample Rate.
Once you enable this setting, you should see the sample rate show up within the animation panel. In the image above, you can see this just below the animation recording controls.
Bonus: Sample Rate Magic Number
I believe this value defaults to 60 (unsure on this). From most videos I’ve seen, the magic number seems to be around 12. Of course, this will depend on your project’s needs. Definitely play around and adjust as you need. But hopefully that should give you a decent starting point.
Conclusion
I’m not sure what caused this panel to not be displayed. My assumption is it is hidden by default in newer versions of Unity. But regardless, this solution worked for me. Hopefully that worked for you as well. Let me know in the comments below.
One thing I wasn’t expecting when I was working on this was the use of 2 different settings panels. Especially in close proximity. The top was the settings for the animation window itself. The bottom (the one we used) was for the actual animation. That was something I wasn’t used to seeing. Making a mental note of that moving forward.