Description

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.

Steps to Reproduce
  1. Open Attached Project
  2. Do packaging
  3. Run the created exe

expect : print  Loaded
result : print Not Loaded!

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-82459 in the post.

2
Login to Vote

Won't Fix
ComponentUE - Editor - UI Systems
Affects Versions4.234.22.3
CreatedOct 25, 2019
ResolvedAug 27, 2021
UpdatedAug 27, 2021
View Jira Issue