Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Animation > API/Runtime/Engine/Animation/AnimData > API/Runtime/Engine/Animation/AnimData/IAnimationDataController
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Animation/AnimData/IAnimationDataController.h |
| Include | #include "Animation/AnimData/IAnimationDataController.h" |
bool SetAttributeKey
(
const FAnimationAttributeIdentifier & AttributeIdentifier,
float Time,
const void * KeyValue,
const UScriptStruct * TypeStruct,
bool bShouldTransact
)
Remarks
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. Whether or not the key was successfully set
Parameters
| Name | Description |
|---|---|
| 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 |