Can I Create a Static Mesh in Content Browser via code

Hi there,

I have created a static mesh in blueprint via geometry script. I wonder if it is possible to save the mesh as an unreal asset and how. Either in blueprint or c++.

Thanks for any help.

You don’t actually need either BP or C++ for this, and can save it within the editor.

Start PIE session, do whatever needs doing to generate mesh (if anything) and then pause the session (Shift-F1 to get mouse back), select the generated mesh and then under the Actor menu you should find a Convert XYZ To Static Mesh (where XYZ will be the name of the bp containing your mesh).

Hi there!
I have encountered this problem before. After watching the episode of Inside Unreal Geometry Script, luckily I found a way to save it. Now I have put it in the blueprint slice. Enjoy!

https://dev.epicgames.com/community/snippets/JgD2/unreal-engine-savedynamicmesh

Thanks it works fine.