Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Animation > API/Runtime/Engine/Animation/AnimData > API/Runtime/Engine/Animation/AnimData/IAnimationDataController
- IAnimationDataController::SetCurveKey()
- UAnimDataController::SetCurveKey()
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Animation/AnimData/IAnimationDataController.h |
| Include | #include "Animation/AnimData/IAnimationDataController.h" |
bool SetCurveKey
&40;
const FAnimationCurveIdentifier & CurveId,
const FRichCurveKey & Key,
bool bShouldTransact
&41;
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 |