# How can i put some mesh with c++?

**URL:** <https://forums.unrealengine.com/t/how-can-i-put-some-mesh-with-c/671258>\
**Category:** Getting Started & Setup\
**Tags:** unreal-engine, procedural-mesh\
**Created:** [October 17, 2022, 3:06pm UTC](https://forums.unrealengine.com/t/how-can-i-put-some-mesh-with-c/671258 "2022-10-17T15:06:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![bent.gross](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bent.gross](https://forums.unrealengine.com/u/bent.gross)\
**Post date:** [October 18, 2022, 12:57pm UTC](https://forums.unrealengine.com/t/how-can-i-put-some-mesh-with-c/671258/2 "2022-10-18T12:57:33Z")

</div>

Hi,

based upon this thread [https://forums.unrealengine.com/t/load-static-mesh-with-path-in-c/292234/2](https://forums.unrealengine.com/t/load-static-mesh-with-path-in-c/292234/2) you should be able to do something like this to load existing meshes through c++

```auto
TSubobject<UStaticMeshComponent> mesh = PCIP.CreateDefaultSubobject<UStaticMeshComponent>(this, TEXT("Mesh"));
const ConstructorHelpers::FObjectFinder<UStaticMesh> MeshObj(TEXT("/Game/Mesh/Cube/YourMesh"));
mesh->SetStaticMesh(MeshObj.Object);

```

---

_[View the full topic](https://forums.unrealengine.com/t/how-can-i-put-some-mesh-with-c/671258)._
