How to load a Static Mesh through C++?

I’ve tried the following but for some reason it’s not working

static ConstructorHelpers::FObjectFinder<UStaticMesh> CubeMeshAsset(TEXT("StaticMesh'Content/Geometry/Meshes/1M_Cube.1M_Cube'"));

While lauching Unreal the editor says: http://prntscr.com/f5xe2b

But the file is present here: http://prntscr.com/f5xeez

Thanks in advance.

Have you tried:

static ConstructorHelpers::FObjectFinder<UStaticMesh> CubeMeshAsset(TEXT("Content/Geometry/Meshes/1M_Cube"));

That doesn’t work either, thanks for trying though

My bad:

static ConstructorHelpers::FObjectFinder<UStaticMesh> CubeMeshAsset(TEXT("/Geometry/Meshes/1M_Cube"));

HI.

look at this

Still the same thing http://prntscr.com/f5z8cb

Thanks! It worked.