Navigation
Unreal Engine C++ API Reference > Developer > AnimationDataController > UAnimDataController
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 ( [FFrameNumber](API\Runtime\Core\Misc\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 |