Download

Update ProceduralMesh Vertex Colors/UVs without changing positions

Hello Developers,
in a recent change to UProceduralMeshComponent you made it impossible to change only non-positional information.
Now UProceduralMeshComponent::UpdateMeshSection expects to be called only when vertex positions change.

This implies that collision information is rebuilt everytime only non-positional information needs to be changed.
In my case, I hide certain parts of the mesh via modifying only vertex colors.

I can understand that the change might be related to performance, however, for these use cases the change certainly is a decrease in performance.
Are these cases not important enough to cover them?
Is there a reason we do not have a way of updating non-location information only?

Thanks for your feedback.