FMovieSceneTrackEditor

Base class for handling key and section drawing and manipulation of a [UMovieSceneTrack](API\Runtime\MovieScene\UMovieSceneTrack) class.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Sequencer

Header

/Engine/Source/Editor/Sequencer/Public/MovieSceneTrackEditor.h

Include

#include "MovieSceneTrackEditor.h"

Syntax

class FMovieSceneTrackEditor :
    public TSharedFromThis< FMovieSceneTrackEditor >,
    public ISequencerTrackEditor

Remarks

Base class for handling key and section drawing and manipulation of a UMovieSceneTrack class.

Constructors

Name Description

Public function

FMovieSceneTrackEditor

(
    TSharedRef< ISequencer > InSequence...
)

Constructor

Destructors

Name Description

Public function Virtual

~FMovieSceneTrackEditor()

Destructor

Functions

Name Description

Public function

void

 

AnimatablePropertyChanged

(
    FOnKeyProperty OnKeyProperty
)

Public function Static

void

 

BeginKeying

(
    FFrameNumber InFrameNumber
)

Initiate keying when there is more than one object to key (ie. drag and drop assets).

Public function Static

void

 

EndKeying()

Public function

FFindOrCreat...

 

FindOrCreateHandleToObject

(
    UObject* Object,
    bool bCreateHandleIfMissing,
    const FName& CreatedFolderName
)

Public function

FFindOrCreat...

 

FindOrCreateMasterTrack()

Find or add a master track of the specified type in the focused movie scene.

Public function

FFindOrCreat...

 

FindOrCreateTrackForObject

(
    const FGuid& ObjectHandle,
    TSubclassOf< UMovieSceneTrack > Tra...,
    FName PropertyName,
    bool bCreateTrackIfMissing
)

Protected function Const

UMovieScene ...

 

GetFocusedMovieScene()

Gets the currently focused movie scene, if any.

Public function Const

UMovieSceneS...

 

GetMovieSceneSequence()

Public function Const

const TShare...

 

GetSequencer()

Public function

FFrameNumber

 

GetTimeForKey()

Public function

void

 

UpdatePlaybackRange()

Overridden from ISequencerTrackEditor

Name Description

Public function Virtual

UMovieSceneT...

 

AddTrack

(
    UMovieScene* FocusedMovieScene,
    const FGuid& ObjectHandle,
    TSubclassOf< class UMovieSceneTrack...,
    FName UniqueTypeName
)

Add a new track to the sequence.

Public function Virtual

void

 

BindCommands

(
    TSharedRef< FUICommandList > Sequen...
)

Allows the track editors to bind commands.

Public function Virtual

void

 

BuildAddTrackMenu

(
    FMenuBuilder& MenuBuilder
)

Builds up the sequencer's "Add Track" menu.

Public function Virtual

void

 

BuildObjectBindingEditButtons

(
    TSharedPtr< SHorizontalBox > EditBo...,
    const FGuid& ObjectBinding,
    const UClass* ObjectClass
)

Builds up the object binding edit buttons for the outliner.

Public function Virtual

void

 

BuildObjectBindingTrackMenu

(
    FMenuBuilder& MenuBuilder,
    const TArray< FGuid >& ObjectBindi...,
    const UClass* ObjectClass
)

Builds up the object binding track menu for the outliner.

Public function Virtual

TSharedPtr< ...

 

BuildOutlinerEditWidget

(
    const FGuid& ObjectBinding,
    UMovieSceneTrack* Track,
    const FBuildEditWidgetParams& Para...
)

Builds an edit widget for the outliner nodes which represent tracks which are edited by this editor.

Public function Virtual

void

 

BuildTrackContextMenu

(
    FMenuBuilder& MenuBuilder,
    UMovieSceneTrack* Track
)

Builds the context menu for the track.

Public function Virtual

bool

 

HandleAssetAdded

(
    UObject* Asset,
    const FGuid& TargetObjectGuid
)

Called when an asset is dropped into Sequencer.

Public function Virtual

TSharedRef< ...

 

MakeSectionInterface

(
    UMovieSceneSection& SectionObject,
    UMovieSceneTrack& Track,
    FGuid ObjectBinding
)

Called to generate a section layout for a particular section.

Public function Virtual

bool

 

OnAllowDrop

(
    const FDragDropEvent& DragDropEven...,
    FSequencerDragDropParams& DragDrop...
)

Called when attempting to drop an asset directly onto a track.

Public function Virtual

FReply

 

OnDrop

(
    const FDragDropEvent& DragDropEven...,
    const FSequencerDragDropParams& Dr...
)

Called when an asset is dropped directly onto a track.

Public function Virtual

void

 

OnInitialize()

Called when the instance of this track editor is initialized

Public function Virtual

void

 

OnRelease()

Called when the instance of this track editor is released

Public function Virtual

int32

 

PaintTrackArea

(
    const FPaintArgs& Args,
    const FGeometry& AllottedGeometry,
    const FSlateRect& MyCullingRect,
    FSlateWindowElementList& OutDrawEl...,
    int32 LayerId,
    const FWidgetStyle& InWidgetStyle
)

Allows the track editor to paint on a track area.

Public function Virtual Const

bool

 

SupportsSequence

(
    UMovieSceneSequence* InSequenc...
)

Returns whether a sequence is supported by this tool.

Public function Const

bool

 

SupportsType

(
    TSubclassOf< class UMovieSceneTrack...
)

Returns whether a track class is supported by this tool.

Public function Virtual

void

 

Tick

(
    float DeltaTime
)

Ticks this tool.

Classes

Constants

Name

Description

bKeying

Indicates whether we're currently in a keying operation where multiple keys may be created (ie. drag and drop)

NextKeyTime

The key time to use during a multi key operation. Only used if bKeying is true

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss