Save an Edited Animation?

I’m just starting out with the Animation Editor - I never started with Unity until 2.5 so I haven’t played with it before. I got the hang of creating an animation but having spent an hour getting it just right, I closed the animation view (yeah, probably not wise) and now the animation is completely blank. So all the keyframes and curves I created and edited are gone. The clip is still there, but it’s blank.

So what was I supposed to do to save it? I’ve gone back into the editor and I still can’t find any option to explicitly save anything. When I created a clip, it let me pick the filename and location, but how do I make it update what’s in the editor into the file?

Was the “play” button pushed while you edited? You lose any edits you make if you edit in play mode.

Otherwise, I think everything gets saved when you close unity.

No, the play button wasn’t pushed. I had the record button on in the animation editor while editing the animation too.

On second look though, perhaps it’s just a visual glitch. The values for each keyframe seem to be correct, but the curves are not reflecting that. I’ll have to code something which uses the animation to make sure, but hopefully that means that the animation is intact and it’s just the graph in the editor which is not displaying correctly.