Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Animation > API/Runtime/Engine/Animation/AnimData > API/Runtime/Engine/Animation/AnimData/IAnimationDataController
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Animation/AnimData/IAnimationDataController.h |
| Include | #include "Animation/AnimData/IAnimationDataController.h" |
UFUNCTION (BlueprintCallable, Category=AnimationData)
void SetNumberOfFrames
(
FFrameNumber NewLengthInFrames,
bool bShouldTransact
)
Remarks
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.
Parameters
| Name | Description |
|---|---|
| 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 |