When bHasBlueprintClasses of AssetManager is enabled, WidgetBlueprint is not included in ClassName of ARFilter. Therefore, asynchronous loading using AssetManager of the UUserWidget inheritance class that implements GetPrimaryAssetId fails.
Specifically, there is a problem with GetDerivedClasses in the following code in UAssetManager :: ScanPathsForPrimaryAssets.
TArray<UClass*> BlueprintCoreDerivedClasses;
GetDerivedClasses(UBlueprintCore::StaticClass(), BlueprintCoreDerivedClasses);
for (UClass* BPCoreClass : BlueprintCoreDerivedClasses)
{
ARFilter.ClassNames.Add(BPCoreClass->GetFName());
}
If you try to include WidetBlueprint in this ARFilter, it works fine.
expect : print Loaded
result : print Not Loaded!
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-82459 in the post.
2 |
Component | UE - Editor - UI Systems |
---|---|
Affects Versions | 4.23, 4.22.3 |
Created | Oct 25, 2019 |
---|---|
Resolved | Aug 27, 2021 |
Updated | Aug 27, 2021 |