I try to get the OnFinishedPlaying event a 2d project write by c++,but it do not work,
here is the use code:
GetSprite()->OnFinishedPlaying.AddDynamic(this, &AFDGameCharacter::FinshPlaying);
And the callback function is:
void AFDGameCharacter::FinshPlaying()
{
GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Yellow, TEXT("attack"));
}
But this callback never called!
Can someone tell me how to use this?
Thanks!