Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UAnimInstance
Description
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.
| Name | Montage_SetNextSection |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Animation/AnimInstance.h |
| Include Path | #include "Animation/AnimInstance.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Animation/AnimInstance.cpp |
UFUNCTION (BlueprintCallable, Category="Animation|Montage")
void Montage_SetNextSection
(
FName SectionNameToChange,
FName NextSection,
const UAnimMontage * Montage
)
Parameters
| Name | Remarks |
|---|---|
| SectionNameToChange | : This should be the name of the Montage Section after which you want to insert a new next section |
| NextSection | : new next section |