# Can I Create a Static Mesh in Content Browser via code

**URL:** <https://forums.unrealengine.com/t/can-i-create-a-static-mesh-in-content-browser-via-code/2117415>\
**Category:** C++\
**Tags:** unreal-engine, CPP, question\
**Created:** [November 12, 2024, 8:47am UTC](https://forums.unrealengine.com/t/can-i-create-a-static-mesh-in-content-browser-via-code/2117415 "2024-11-12T08:47:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![XrayHouse1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XrayHouse1](https://forums.unrealengine.com/u/XrayHouse1)\
**Post date:** [November 12, 2024, 8:47am UTC](https://forums.unrealengine.com/t/can-i-create-a-static-mesh-in-content-browser-via-code/2117415/1 "2024-11-12T08:47:25Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![silnarm](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/silnarm/32/955303_2.png) [@silnarm](https://forums.unrealengine.com/u/silnarm)\
**Post date:** [November 12, 2024, 10:39am UTC](https://forums.unrealengine.com/t/can-i-create-a-static-mesh-in-content-browser-via-code/2117415/2 "2024-11-12T10:39:12Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![zhuangbiiii](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zhuangbiiii/32/1188884_2.png) [@zhuangbiiii](https://forums.unrealengine.com/u/zhuangbiiii)\
**Post date:** [November 13, 2024, 9:03am UTC](https://forums.unrealengine.com/t/can-i-create-a-static-mesh-in-content-browser-via-code/2117415/3 "2024-11-13T09:03:40Z")

</div>

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](https://dev.epicgames.com/community/snippets/JgD2/unreal-engine-savedynamicmesh)

---

<div class="post-metadata">

**Author:** ![XrayHouse1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XrayHouse1](https://forums.unrealengine.com/u/XrayHouse1)\
**Post date:** [November 13, 2024, 7:33pm UTC](https://forums.unrealengine.com/t/can-i-create-a-static-mesh-in-content-browser-via-code/2117415/4 "2024-11-13T19:33:19Z")

</div>

Thanks it works fine.
