Hello.
I am packaging my game and after running it i can’t see game world.
In my “world spawner” class i am referencing assets this way:
FStringAssetReference tileGrass = "Blueprint'/Game/MyContent/BP_Sprites/grass.grass'";
FStringAssetReference tileSand = "Blueprint'/Game/MyContent/BP_Sprites/sand.sand'";
FStringAssetReference tileWater = "Blueprint'/Game/MyContent/BP_Sprites/water.water'";
StaticLoadObject(UObject::StaticClass(), nullptr, *tileGrass.ToString());
StaticLoadObject(UObject::StaticClass(), nullptr, *tileSand.ToString());
StaticLoadObject(UObject::StaticClass(), nullptr, *tileWater.ToString());
but looks like
tileToSpawn = tileGrass.ResolveObject();
is returning null so i can’t see my map.
The question is - how to reference assets for packaged version of game?
I tier with and without pak files option and both doesn’t work for me.