UAnimInstance::Montage_JumpToSectionsEnd
#include "Animation/AnimInstance.h"
Access: public
Specifiers: UFUNCTIONBlueprintCallable
Description
Jumps the montage playback position to the end of the named section rather than its start. Useful for entering blend-out immediately from a specific section.
Caveats & Gotchas
- • Jumping to the end of the last section will trigger the montage's natural blend-out on the very next tick, which can cause an abrupt transition if blend-out time is short.
- • Like Montage_JumpToSection, notifies between the current position and the target are skipped.
Signature
ENGINE_API void Montage_JumpToSectionsEnd(FName SectionName, const UAnimMontage* Montage = NULL); Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| SectionName | FName | The section whose end position 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
Skip to end of intro section to start looping phase C++
// Immediately exit the windup section and start the loop
AnimInstance->Montage_JumpToSectionsEnd(FName("Windup"), AttackMontage); Tags
Version History
Introduced in: 4.5
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?