RealDocs

UAnimInstance::Montage_JumpToSection

function Engine Blueprint Since 4.5
#include "Animation/AnimInstance.h"
Access: public Specifiers: UFUNCTIONBlueprintCallable

Description

Immediately moves the montage playback position to the start of the named section. Use this to skip to a different phase of a montage at runtime.

Caveats & Gotchas

  • The jump is instant — notifies between the current position and the target section are skipped entirely and will not fire.
  • If SectionName does not exist in the montage asset, the jump silently fails and playback continues from the current position.

Signature

ENGINE_API void Montage_JumpToSection(FName SectionName, const UAnimMontage* Montage = NULL);

Parameters

Name Type Description Default
SectionName FName The name of the section to jump to.
Montage const UAnimMontage* The montage on which to perform the jump. NULL applies to all active montages. NULL

Return Type

void

Example

Jump to a hit-react section mid-attack C++
// If the character is hit while attacking, skip to the stagger section
AnimInstance->Montage_JumpToSection(FName("Stagger"), AttackMontage);

Version History

Introduced in: 4.5

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.