Generate Procedural Mesh

Hello, quick question. In my blueprint… If I call the below function at every tick, will this animate any changes I had made to the mesh? I mean, is this the right way to do it?

[]

void AGameGeneratedMesh::UpdateMesh(TArray<FAtom> theUniverse)
{

TArray&lt;FCustomMeshTriangle&gt; triangles;

AGameGeneratedMesh::Cubing(triangles, theUniverse);

mesh-&gt;SetCustomMeshTriangles(triangles);
RootComponent = mesh;

}
[/]