Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/IAnimationDataController
Description
Inserts a new bone animation track for the provided name, at the provided index. Broadcasts a EAnimDataModelNotifyType::TrackAdded notify if successful. The bone name is verified with the AnimModel's outer target USkeleton to ensure the bone exists.
| Name | InsertBoneTrack |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Animation/AnimData/IAnimationDataController.h |
| Include Path | #include "Animation/AnimData/IAnimationDataController.h" |
UFUNCTION (BlueprintCallable, Category=AnimationData,
Meta=(DeprecatedFunction, DeprecationMessage="InsertBoneTrack is deprecated use AddBoneTrack instead."))
int32 InsertBoneTrack
(
FName BoneName,
int32 DesiredIndex,
bool bShouldTransact
)
The index at which the bone track was inserted, INDEX_NONE if the insertion failed
Parameters
| Name | Remarks |
|---|---|
| BoneName | Bone name for which a track should be inserted |
| DesiredIndex | Index at which the track should be inserted |
| bShouldTransact | Whether or not any undo-redo changes should be generated |