Navigation
API > API/Developer > API/Developer/AnimationDataController > API/Developer/AnimationDataController/UAnimDataController
- IAnimationDataController::SetNumberOfFrames()
- UAnimDataController::SetNumberOfFrames()
References
| Module | AnimationDataController |
| Header | /Engine/Source/Developer/AnimationDataController/Public/AnimDataController.h |
| Include | #include "AnimDataController.h" |
| Source | /Engine/Source/Developer/AnimationDataController/Private/AnimDataController.cpp |
virtual void SetNumberOfFrames
&40;
FFrameNumber NewLengthInFrames,
bool bShouldTransact
&41;
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 |