Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/IAnimationDataController
Description
Sets a single key for the transform curve with provided identifier. Broadcasts a EAnimDataModelNotifyType::CurveChanged notify if successful. In case a key for any of the individual transform channel curves already exists the value is replaced.
| Name | SetTransformCurveKey |
| 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 SetTransformCurveKey
(
const FAnimationCurveIdentifier & CurveId,
float Time,
const FTransform & Value,
bool bShouldTransact
)
Whether or not the transform curve key was successfully set
Parameters
| Name | Remarks |
|---|---|
| CurveId | Identifier for the transform curve for which the key is to be set |
| Time | Time of the key to be set |
| Value | Value of the key to be set |
| bShouldTransact | Whether or not any undo-redo changes should be generated |