I believe you need to lose the Content
subfolder like /Engine/EngineSky/C_Sky_Zenith_Color
(this appears how all the engine object loading is done, not sure how it works though).
I have about a few assets I load here, and all of them fail to load. What am I doing wrong? Here’s the code:
static ConstructorHelpers::FObjectFinder CurvePath(TEXT("/Engine/Content/EngineSky/C_Sky_Horizon_Color"));
mHorizonColorCurve = CurvePath.Object;
static ConstructorHelpers::FObjectFinder<UCurveLinearColor> ZenithCurvePath(TEXT("/Engine/Content/EngineSky/C_Sky_Zenith_Color"));
mZenithColorCurve = ZenithCurvePath.Object;
static ConstructorHelpers::FObjectFinder<UCurveLinearColor> CloudCurvePath(TEXT("/Engine/Content/EngineSky/C_Sky_Cloud_Color"));
mCloudColorCurve = CloudCurvePath.Object;
static ConstructorHelpers::FObjectFinder<UMaterial> Material(TEXT("/Engine/Content/EngineSky/M_Sky_Panning_Clouds2"));
mSkyMaterial = UMaterialInstanceDynamic::Create(Material.Object, mSkySphereMesh);
Perhaps you need the root folder in the path to be /Game ?
Surprisingly, it worked, but not for all assets. I double checked names and that I actually have the assets. The one that failed is /Engine/EngineSky/SM_SkySphere