# From ProceduralMesh to DynamicMesh

**URL:** <https://forums.unrealengine.com/t/from-proceduralmesh-to-dynamicmesh/661279>\
**Category:** C++\
**Tags:** unreal-engine, UE5-0, CPP, question\
**Created:** [October 3, 2022, 7:52am UTC](https://forums.unrealengine.com/t/from-proceduralmesh-to-dynamicmesh/661279 "2022-10-03T07:52:38Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![123pirke](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@123pirke](https://forums.unrealengine.com/u/123pirke)\
**Post date:** [October 3, 2022, 11:51am UTC](https://forums.unrealengine.com/t/from-proceduralmesh-to-dynamicmesh/661279/3 "2022-10-03T11:51:35Z")

</div>

After filling the FDynamicMesh3, calling

UE::Geometry::CopyVertexUVsToOverlay(mesh, \*mesh.Attributes()-\>PrimaryUV());

UE::Geometry::CopyVertexNormalsToOverlay(mesh, \*mesh.Attributes()-\>PrimaryNormals());

Seems to fix it. Not sure why this is needed.

Oh, and a copy of the VertexColors to the VertexColor overlay is also required.

---

_[View the full topic](https://forums.unrealengine.com/t/from-proceduralmesh-to-dynamicmesh/661279)._
