I am certain I am just missing something, but since 2 days, my idle animations only run once and never return. I've made a new empty project, put in a simple animation and it just runs once, and then stays forever in the completed position, like in the pictures; There is nothing else going on, just a simple sprite changing from one to another, nothing else. In the editor it loops, but in the game, it just runs once. And never again. Most answers I googled don't apply or are about stopping loops instead of running them. I am using 2017.1.0f3 and feel positively stumped.
Go to the animation clip file. Then click the check box next to loop time so there is a checkmark. if you are using a model animation it is the same thing just scroll down to loop time in the animation window of the model import.
See, I knew I was too tired/oblivious to code. Thank you very much, I'll be in the corner turning some shade of red.