# How to create a static mesh in UE5 in C++?

**URL:** <https://forums.unrealengine.com/t/how-to-create-a-static-mesh-in-ue5-in-c/502032>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [February 25, 2022, 8:58am UTC](https://forums.unrealengine.com/t/how-to-create-a-static-mesh-in-ue5-in-c/502032 "2022-02-25T08:58:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![decaf\_sux](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@decaf\_sux](https://forums.unrealengine.com/u/decaf_sux)\
**Post date:** [February 25, 2022, 8:58am UTC](https://forums.unrealengine.com/t/how-to-create-a-static-mesh-in-ue5-in-c/502032/1 "2022-02-25T08:58:37Z")

</div>

I have tried to use code from UE4 for this but it no longer compiles.  
Do we have any recommended approach to create a static mesh in C++ in UE5?

Any feedback is welcome.
