Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UAnimInstance
Description
Plays an animation montage. Returns the length of the animation montage in seconds. Returns 0.f if failed to play.
Play a Montage. Returns Length of Montage in seconds. Returns 0.f if failed to play.
| Name | Montage_Play |
| 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")
float Montage_Play
(
UAnimMontage * MontageToPlay,
float InPlayRate,
EMontagePlayReturnType ReturnValueType,
float InTimeToStartMontageAt,
bool bStopAllMontages
)