Does Unity allow streaming mesh data that can be continuously changed?
I have a level that is dynamically changing based on some parameters. The number of triangles stays the same, they just change positions.
I'm speaking of around 2000 triangles that need their position updated each frame (they follow a spline that is computed on CPU), running on mobile phones.
I can't use a TrailRenderer
because the object is a whole level. I can't use bones, because I need to know the final position for each vertex for my custom collision code.
The mesh should be marked Mesh.MarkDynamic
.