Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Animation > API/Runtime/Engine/Animation/AnimData > API/Runtime/Engine/Animation/AnimData/IAnimationDataController > API/Runtime/Engine/Animation/AnimData/IAnimationDataController/UpdateBoneTrackK-
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Animation/AnimData/IAnimationDataController.h |
| Include | #include "Animation/AnimData/IAnimationDataController.h" |
bool UpdateBoneTrackKeys
(
FName BoneName,
const FInt32Range & KeyRangeToSet,
const TArray < FVector > & PositionalKeys,
const TArray < FQuat > & RotationalKeys,
const TArray < FVector > & ScalingKeys,
bool bShouldTransact
)
Remarks
Sets a range of keys for an existing bone animation track with the provided name. Broadcasts a EAnimDataModelNotifyType::TrackChanged notify if successful. The provided number of keys provided is expected to match for each component, be between FrameLowerBound and FrameUpperBound (inclusive), and be non-zero. Whether or not the keys were successfully set
Parameters
| Name | Description |
|---|---|
| BoneName | Bone name of the track for which the keys should be set |
| KeyRangeToSet | Range of frames to set keys for |
| PositionalKeys | Array of keys for the translation component |
| RotationalKeys | Array of keys for the rotation component |
| ScalingKeys | Array of keys for the scale component |
| bShouldTransact | Whether or not any undo-redo changes should be generated |