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 | SetAttributeKey |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Animation/AnimData/IAnimationDataController.h |
| Include Path | #include "Animation/AnimData/IAnimationDataController.h" |
bool SetAttributeKey
(
const FAnimationAttributeIdentifier & AttributeIdentifier,
float Time,
const void * KeyValue,
const UScriptStruct * TypeStruct,
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 of the to-be-set key |
| TypeStruct | UScriptStruct describing the type of KeyValue |
| bShouldTransact | Whether or not any undo-redo changes should be generated |