Navigation
API > API/Editor > API/Editor/MovieSceneTools > API/Editor/MovieSceneTools/FKeyframeTrackEditor
Description
Adds keys to the specified guid. This may also add tracks and sections depending on the options specified.
| Name | AddKeysToHandle |
| Type | function |
| Header File | /Engine/Source/Editor/MovieSceneTools/Public/KeyframeTrackEditor.h |
| Include Path | #include "KeyframeTrackEditor.h" |
FKeyPropertyResult AddKeysToHandle
(
UObject * Object,
FGuid ObjectHandle,
FFrameNumber KeyTime,
ESequencerKeyMode KeyMode,
TSubclassOf < UMovieSceneTrack > TrackClass,
FName PropertyName,
TFunction < void> OnInitializeNewTrack,
const GenerateKeysCallback & OnGenerateKeys
)
Whether or not a track was created. Note this does not return true if keys were added or modified.
Parameters
| Name | Remarks |
|---|---|
| Object | Object to add keyframes to. |
| ObjectHandle | Object Handle to add keyframes to. |
| KeyTime | The time to add keys. |
| GeneratedKeys | Array of keys to set |
| KeyParams | The parameters to control keyframing behavior. |
| TrackClass | The class of track which should be created if specified in the parameters. |
| PropertyName | The name of the property to add keys for. |
| OnInitializeNewTrack | A delegate which allows for custom initialization for new tracks. This is called after the track is created, but before any sections or keys have been added. |