コード
//新しい頂点が少ない場合、頂点データを先に更新すると、
//その瞬間だけ三角形が更新できなくてエラーになるので順序を変える
if (newVerts.Count()<mesh.vertexCount)
{
mesh.triangles = triangles.ToArray();
mesh.vertices = newVerts;
}
else
{
mesh.vertices = newVerts;
mesh.triangles = triangles.ToArray();
}
// メッシュの更新
mesh.RecalculateBounds();
mesh.RecalculateNormals();