Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/IAnimationDataController
Description
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.
| Name | SetFrameRate |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Animation/AnimData/IAnimationDataController.h |
| Include Path | #include "Animation/AnimData/IAnimationDataController.h" |
UFUNCTION (BlueprintCallable, Category=AnimationData)
void SetFrameRate
(
FFrameRate FrameRate,
bool bShouldTransact
)
Parameters
| Name | Remarks |
|---|---|
| FrameRate | The new sampling frame rate, has to be positive and non-zero |
| bShouldTransact | Whether or not any undo-redo changes should be generated |