Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Animation > API/Runtime/Engine/Animation/AnimData > API/Runtime/Engine/Animation/AnimData/IAnimationDataController
- IAnimationDataController::SetFrameRate()
- UAnimDataController::SetFrameRate()
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Animation/AnimData/IAnimationDataController.h |
| Include | #include "Animation/AnimData/IAnimationDataController.h" |
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 |