Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/IAnimationDataController
Description
Sets a single key for the attribute with provided identifier. Broadcasts a EAnimDataModelNotifyType::AttributeChanged notify if successful. In case a key for the provided key time already exists the key is replaced.
| Name | SetTypedAttributeKey |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Animation/AnimData/IAnimationDataController.h |
| Include Path | #include "Animation/AnimData/IAnimationDataController.h" |
template<typename AttributeType>
bool SetTypedAttributeKey
(
const FAnimationAttributeIdentifier & AttributeIdentifier,
float Time,
const AttributeType & KeyValue,
bool bShouldTransact
)
Whether or not the key was successfully set
Parameters
| Name | Remarks |
|---|---|
| AttributeIdentifier | Identifier for the attribute for which the key is to be set |
| Time | Time of the to-be-set key |
| KeyValue | Value (templated) of the to-be-set key |
| bShouldTransact | Whether or not any undo-redo changes should be generated |