// Doesn't work in standalone? FAssetRegistryModule& AssetRegistryModule = FModuleManager::LoadModuleChecked<FAssetRegistryModule>("AssetRegistry"); TArray<FAssetData> AssetData; AssetRegistryModule.Get().GetAssetsByClass(TEXT("ECGame_MapSummary"), AssetData, false); ASSERTV(AssetData.Num() > 0, TEXT("No Map Summaries Found"));
Simple question really, I can’t understand why the above code only fires the assertion in Standalone, and only then when launched from the Editor?
If I package the game and launch, it works fine (in any configuration)
If I use PIE, it works fine.
Only in Standalone does it crash - and I don’t get why. I’ve tried called AssetRegistry.IsLoadingAssets() which returns false - so what gives?
Essentially I’m trying to find any ECGame_MapSummary assets that I’ve created from ANYWHERE in the project. I don’t want to have a list of defined objects because I want modders to be able to create these as well and add them to the list without conflicts.