UAnimDataController::SetFrameRate

Sets the frame rate according to which the bone animation is expected to be sampled.

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 SetFrameRate
(
    [FFrameRate](API\Runtime\Core\Misc\FFrameRate) FrameRate,
    bool bShouldTransact
)

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

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library