Record Animation Clip from changes made with Mesh API?

I’m using the Unity mesh API to move vertices and recalculate normals. Now, I want to release on a platform with strict CPU limitations, and I cannot animate via Mesh API anymore. Is there anyway I can record an Animation Clip at runtime from a mesh being modified via the Mesh API?

If you don’t want to use regular animation clips, you will have to code your own animation clip recording and playback system. It’s actually not that hard, you basically need a class that holds all required data for a clip and a class for a single frame, with an arra of Vector3 to hold the vertex positions at that frame… You can also try to emulate keyframes so you don’t have to save the vertex positions of every frame, instead adding a delay value and using Vector3.Lerp to go from one position to the next.