I have some audios to play separately from the animation, but some animations should have an event "soundtrigger" to notify when I should play it.
I can bind to the AnimationEvent but I couldn't find if this animation have this event.
This works, but I'd like to make the bind only if the animation have this event
UTrackEntry* animation = SkeletonAnimationComponent->SetAnimation(0, animationNameToPlay, false);
if(!animation->AnimationEvent.Contains(this, "PlaySoundInWait"))
animation->AnimationEvent.AddDynamic(this, &AMyPawn::PlaySoundInWait);