Convert UDynamicMesh to UStaticMesh

Hi everyone!

I’m developing a RoadTool and I need it to be integrated with Voxel Plugin.
I need it to deform the terrain when the player places the road. To do it, I’m thinking in generate an UDynamicMesh and use UVoxelMeshTool to deform the terrain. The problem is that the UVoxelMeshTool uses StaticMesh to deform the terrain.

So the question is: How can I convert an UDynamicMesh to UStaticMesh in EditorMode and also in Runtime?

With the plugin Geometry Script Library you can copy dynamic meshes to static. Unfortunately it relies on UnrealEd so there is not way to utilize it in packed versions (yet).



copy3

1 Like

Thank you for your answer!

I know that it’s possible to convert DynamicMesh into StaticMesh using this Blueprint node, but I really need to do it in runtime. Maybe get FMeshDescription from DynamicMesh and then convert it to StaticMesh. But I don’t know if it’s posible yet.

1 Like