Mesh Data During an Animation

Here's what I want to do:

function LateUpdate () {
    var mesh : Mesh = GetComponent(MeshFilter).mesh;
    var vertices = mesh.vertices;
    var normals = mesh.normals;
    // do something with vertices and normals
}

This works perfectly fine when the object isn't animated, but during the animation, this doesn't return vertices and normals that should have been changed. I get the original vertices and normals.

Any ideas on how I might get updated vertices and normals from an object in animation? Thank you.

You can't do it unfortunately.

The best you can do really is add (or if it already exists, upvote) a request for new functions to get the currently animated positions of the mesh on http://feedback.unity3d.com

Heres the post from a couple weeks back where Aras (from Unity Technology) mentioned it:

http://answers.unity3d.com/questions/15021/access-skinned-mesh-vertices/15023#15023