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 ResizeInFrames ( [FFrameNumber](API\Runtime\Core\Misc\FFrameNumber) NewLengthInFrames, [FFrameNumber](API\Runtime\Core\Misc\FFrameNumber) T0, [FFrameNumber](API\Runtime\Core\Misc\FFrameNumber) T1, bool bShouldTransact )
Remarks
Sets the total play-able length in seconds and resizes curves. Broadcasts EAnimDataModelNotifyType::SequenceLengthChanged and EAnimDataModelNotifyType::CurveChanged notifies if successful. T0 and T1 are expected to represent the window of time that was either added or removed. E.g. for insertion T0 indicates the time at which additional time starts and T1 were it ends. For removal T0 indicates the time at which time should be started to remove, and T1 indicates the end. Giving a total of T1 - T0 added or removed length. 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 |
T0 | Point between 0 and NewLengthInFrames at which the change in length starts |
T1 | Point between 0 and NewLengthInFrames at which the change in length ends |
bShouldTransact | Whether or not any undo-redo changes should be generated |