I am trying to load the original ThirdPerson C++ Template Mannequin AnimBP file.
The following line works properly in editor (UE4.17.1), but somehow throws a ‘CDO Constructor: Failed to Find’ error in packaged game.
static ConstructorHelpers::FObjectFinder<UAnimBlueprint> AB_Asset(TEXT("/Game/Mannequin/Animations/ThirdPerson_AnimBP.ThirdPerson_AnimBP"));
Please note that;
- I made NO modifications on the original ThirdPerson template anim files,
- properly defined the directory to be included in DefaultGame.ini using +DirectoriesToAlwaysCook,
- set bDontLoadBlueprintOutsideEditor flag to False in DefaultEditor.ini,
- and, checked the Packaging log file. The files that I’m trying to load are properly cooked in package.
As an alternative to static FObjectFinder method, I also tried to load the same AnimBP file using FStreamableManager Sync/ASync loaders. The file is properly loaded, but ResolveObject() somehow fails to generate a valid object.