UAnimDataController::SetCurveKey

Sets a single key for the curve with provided identifier and name.

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 bool SetCurveKey
(
    const [FAnimationCurveIdentifier](API\Runtime\Engine\Animation\AnimData\FAnimationCurveIdentifier) & CurveId,
    const [FRichCurveKey](API\Runtime\Engine\Curves\FRichCurveKey) & Key,
    bool bShouldTransact
)

Remarks

Sets a single key for the curve with provided identifier and name. Broadcasts a EAnimDataModelNotifyType::CurveChanged notify if successful. In case a key for the provided key time already exists the key is replaced. Whether or not the curve key was successfully set

Parameters

Name Description
CurveId Identifier for the curve for which the key is to be set
Key Key to be set
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