Navigation
API > API/Developer > API/Developer/AnimationDataController > API/Developer/AnimationDataController/UAnimDataController
- IAnimationDataController::SetAttributeKey()
- UAnimDataController::SetAttributeKey()
References
| Module | AnimationDataController |
| Header | /Engine/Source/Developer/AnimationDataController/Public/AnimDataController.h |
| Include | #include "AnimDataController.h" |
virtual bool SetAttributeKey
&40;
const FAnimationAttributeIdentifier & AttributeIdentifier,
float Time,
const void &42; KeyValue,
const UScriptStruct &42; TypeStruct,
bool bShouldTransact
&41;
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 |