If someone finished official tutorial code-a-firstperson-adventure-game-in-unreal-engine and tried to package a build, when running the packaged build, properly hit this error:
After some investigate , i found UE-5.6.0 can’t serialize and package Animblueprints correctly.
the AnimBlueprint object declared in CPP header file,
public:
// Sets default values for this character's properties
AMyCharacter();
UPROPERTY(EditAnywhere, Category="Animation")
TObjectPtr<UAnimBlueprint>MyTestAnim;
and then instanced on blueprint , even if it has been assigned a ABP_AnimBlueprint in editor, it still get nullptr in c++ ( it runs well in PIE ) , the error log shows:
Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x0000000000000030
if you try to use this AnimBlueprint,
It just can’t package UAnimBlueprint properly (so far i found), leading to project runs well in PIE but crashed in packaged build.