Navigation
API > API/Developer > API/Developer/AnimationDataController > API/Developer/AnimationDataController/UAnimDataController
- IAnimationDataController::SetFrameRate()
- UAnimDataController::SetFrameRate()
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 SetFrameRate
&40;
FFrameRate FrameRate,
bool bShouldTransact
&41;
Remarks
Sets the frame rate according to which the bone animation is expected to be sampled. Broadcasts a EAnimDataModelNotifyType::FrameRateChanged notify if successful. The number of frames and keys for the provided frame rate is recalculated according to the current value of UAnimDataModel::PlayLength.
Parameters
| Name | Description |
|---|---|
| FrameRate | The new sampling frame rate, has to be positive and non-zero |
| bShouldTransact | Whether or not any undo-redo changes should be generated |