Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/IAnimationDataController
Description
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.
| Name | SetCurveKey |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Animation/AnimData/IAnimationDataController.h |
| Include Path | #include "Animation/AnimData/IAnimationDataController.h" |
UFUNCTION (BlueprintCallable, Category=CurveData)
bool SetCurveKey
(
const FAnimationCurveIdentifier & CurveId,
const FRichCurveKey & Key,
bool bShouldTransact
)
Whether or not the curve key was successfully set
Parameters
| Name | Remarks |
|---|---|
| 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 |