UAnimDataController::SetAttributeKey

Sets a single key for the attribute with provided identifier.

Unreal Engine C++ API Reference > Developer > AnimationDataController > UAnimDataController

References

   
Module AnimationDataController
Header /Engine/Source/Developer/AnimationDataController/Public/AnimDataController.h
Include #include "AnimDataController.h"
virtual bool SetAttributeKey
(
    const [FAnimationAttributeIdentifier](API\Runtime\Engine\Animation\AnimData\FAnimationAttributeIdentifier) & AttributeIdentifier,
    float Time,
    const void * KeyValue,
    const [UScriptStruct](API\Runtime\CoreUObject\UObject\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

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library