Back to search
PatternGold tierAnimation

Play animation montage on character with callback when finished

Updated 6mo ago
UE 5.3UE 5.4UE 5.5UE 5.6UE 5.7#montage#animation#play#callback#finished#event

Reference

Pattern: EventBeginPlay or custom event → GetMesh → PlayMontage(MontageToPlay=AM_Attack, Rate=1.0) → Bind to OnMontageEnded delegate on AnimInstance for completion callback. Simpler approach: use Delay(Duration=MontageLength) after PlayMontage as rough callback. Key: PlayMontage is called on SkeletalMeshComponent (GetMesh()). Inputs: 'InSkeletalMeshComponent' and 'MontageToPlay'. Returns montage length as ReturnValue.