There are many times that you want a loop animation in Unity.
What do I mean by that?
For example, in unity we want this cube to be rotating forever. So we create a rotate animation and add it to our cube.
This is the result:
So we don’t want that, What we want is something like this:
Unity animation solved this problem for us. You simply go to your animation window.
Select All your keyframes
Right Click on them
And select “Auto”