I tried to dynamic load animation blueprint in my project. It will be correctly loaded when started the game from editor,but there is one error when debug my project. I don’t know the result from what. Can anyone give me nice idea?
Here is my code:
/** The main skeletal mesh associated with this Character (optional sub-object). /
UPROPERTY(Category = Character, EditAnywhere)
class UAnimBlueprint myAnimBP;
//dynamic load asset myAnimBP = Cast<UAnimBlueprint>(StaticLoadObject(UAnimBlueprint::StaticClass(), NULL, TEXT("AnimBlueprint'/Game/Character/Role/blueprint/player_anims.player_anims'")));