UAnimInstance::Montage_SetNextSection

Relink new next section AFTER SectionNameToChange in run-time You can link section order the way you like in editor, but in run-time if you'd like to change it dynamically, use this function to relink the next section For example, you can have Start->Loop->Loop->Loop....

Windows
MacOS
Linux

Syntax

void Montage_SetNextSection
(
    FName SectionNameToChange,
    FName NextSection,
    const UAnimMontage * Montage
)

Remarks

Relink new next section AFTER SectionNameToChange in run-time You can link section order the way you like in editor, but in run-time if you'd like to change it dynamically, use this function to relink the next section For example, you can have Start->Loop->Loop->Loop.... but when you want it to end, you can relink next section of Loop to be End to finish the montage, in which case, it stops looping by Loop->End.

Parameters

Parameter

Description

SectionNameToChange

: This should be the name of the Montage Section after which you want to insert a new next section

NextSection

: new next section

References

Module

Engine

Header

Runtime/Engine/Classes/Animation/AnimInstance.h

Source

Runtime/Engine/Private/Animation/AnimInstance.cpp

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback