Preloading textures

I’ve been trying to preload textures, but it seems no matter what I try, it still streams in on the fly, making textures look blurry when first loaded (I’m making a 2D game so I want to preload all the stuff for a level).

I’ve tried this in my GameMode class:



TArray<UObject*> Assets;
EngineUtils::FindOrLoadAssetsByPath(TEXT("/Game/LevelAssets"), Assets, EngineUtils::ATL_Regular);

for(int i = 0; i < Assets.Num(); i++)
{
    FName PathName = SwatterHelper::GetObjPath(Assets*);
    ConstructorHelpers::FObjectFinder<UObject> LoadedAsset(*PathName.ToString());
}

IStreamingManager::Get().StreamAllResources(20.f);

But it still doesn’t work. Is there something else I have to do to preload?

I am also wondering how this is done