I’m currently using Blueprint scripting to generate meshes from a list of vertices using the ProceduralMeshComponent. The algorithm is working as intended.
However, I am looking to convert the ProceduralMeshComponent to a StaticMesh or StaticMesh actor at run-time but it doesn't seem to be possible to do this with blueprints.
You can do this conversion in editor with the use of the 'Create StaticMesh' button in the Details Panel under the ProceduralMeshComponent. I attempted to leverage some of the source code behind this button to create a custom component. However, there were numerous problems using `RawMeshData` and `RawMesh`.
This code for this can be found in the ProceduralMeshComponentDetails.cpp file in the following function:
I was wondering if anyone else has found a solution for this problem.