Access Engine Content from C++

Hi guys,

I want to access engine content from c++, so I can instantiate stuff from there. What’s the correct url?

I’m doing something like this but it’s not working.

static ConstructorHelpers::FObjectFinder<UStaticMesh> StaticMeshOb_AW2(TEXT("StaticMesh'/EngineContent/BasicShapes/Cube.Cube'"));

Thanks!

I figured out how to do this, maybe can be helpful for others.

Inside the editor, you can just right click on the assets and the select “copy reference”, to get the text that you need to use in the ConstructorHelper.

So, I opened the engine content assets clicking on “view engine content” inside the Content Browser and copied the reference for the asset I needed

1 Like