Navigation
API > API/Editor > API/Editor/MovieSceneTools > API/Editor/MovieSceneTools/FKeyframeTrackEditor
Description
Adds keys to the specified object. This may also add tracks and sections depending on the options specified.
| Name | AddKeysToObjects |
| Type | function |
| Header File | /Engine/Source/Editor/MovieSceneTools/Public/KeyframeTrackEditor.h |
| Include Path | #include "KeyframeTrackEditor.h" |
FKeyPropertyResult AddKeysToObjects
(
TArrayView < UObject *const > ObjectsToKey,
FFrameNumber KeyTime,
ESequencerKeyMode KeyMode,
TSubclassOf < UMovieSceneTrack > TrackClass,
FName PropertyName,
TFunction < void> OnInitializeNewTrack,
const GenerateKeysCallback & OnGenerateKeys
)
Whether or not a handle guid or track was created. Note this does not return true if keys were added or modified.
Parameters
| Name | Remarks |
|---|---|
| ObjectsToKey | An array of objects to add keyframes to. |
| KeyTime | The time to add keys. |
| KeyedChannels | Aggregate of optionally enabled channel values for which to create new keys |
| ChannelDefaults | Aggregate of optionally enabled channel default values that should be applied to the section |
| 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. |