Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/IAnimationDataController
Description
Sets the total play-able length in seconds. Broadcasts a EAnimDataModelNotifyType::SequenceLengthChanged notify if successful. The number of frames and keys for the provided length is recalculated according to the current value of UAnimDataModel::FrameRate.
| Name | SetNumberOfFrames |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Animation/AnimData/IAnimationDataController.h |
| Include Path | #include "Animation/AnimData/IAnimationDataController.h" |
UFUNCTION (BlueprintCallable, Category=AnimationData)
void SetNumberOfFrames
(
FFrameNumber NewLengthInFrames,
bool bShouldTransact
)
Parameters
| Name | Remarks |
|---|---|
| NewLengthInFrames | Total new play-able number of frames value (according to frame rate), has to be positive and non-zero |
| bShouldTransact | Whether or not any undo-redo changes should be generated |