ULevelSequencePlayer

[ULevelSequencePlayer](API\Runtime\LevelSequence\ULevelSequencePlayer) is used to actually "play" an level sequence asset at runtime.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

LevelSequence

Header

/Engine/Source/Runtime/LevelSequence/Public/LevelSequencePlayer.h

Include

#include "LevelSequencePlayer.h"

Syntax

class ULevelSequencePlayer : public UMovieSceneSequencePlayer

Remarks

ULevelSequencePlayer is used to actually "play" an level sequence asset at runtime.

This class keeps track of playback state and provides functions for manipulating an level sequence while its playing.

Variables

Name Description

Protected variable

TWeakObjectPtr<...

 

CachedCameraComponent

Public variable

FOnLevelSequenc...

 

OnCameraCut

Event triggered when there is a camera cut

Protected variable

TOptional< int3...

 

SnapshotOffsetTime

Protected variable

FLevelSequenceS...

 

SnapshotSettings

How to take snapshots

Constructors

Name Description

Public function

ULevelSequencePlayer

(
    const FObjectInitializer&
)

Functions

Name Description

Public function Static

ULevelSequen...

 

CreateLevelSequencePlayer

(
    UObject* WorldContextObject,
    ULevelSequence* LevelSequence,
    FMovieSceneSequencePlaybackSettings...,
    ALevelSequenceActor*& OutActor
)

Create a new level sequence player.

Public function Const

UCameraCompo...

 

GetActiveCameraComponent()

Get the active camera cut camera

Public function Static

void

 

GetEventContexts

(
    UWorld& InWorld,
    TArray< UObject* >& OutContex...
)

Populate the specified array with any given event contexts for the specified world

Public function

void

 

Initialize

(
    ULevelSequence* InLevelSequenc...,
    ULevel* InLevel,
    const FMovieSceneSequencePlaybackSe...,
    const FLevelSequenceCameraSettings ...
)

Initialize the player.

Public function

void

 

RewindForReplay()

Public function

void

 

SetSnapshotOffsetFrames

(
    int32 InFrameOffset
)

Set the offset time for the snapshot in play rate frames.

Public function

void

 

SetSnapshotSettings

(
    const FLevelSequenceSnapshotSetting...
)

Set the settings used to capture snapshots with

Public function Const

void

 

TakeFrameSnapshot

(
    FLevelSequencePlayerSnapshot& OutS...
)

Take a snapshot of the current state of this player

Overridden from UMovieSceneSequencePlayer

Overridden from IMovieScenePlayer

Name Description

Public function Virtual Const

TArray< UObj...

 

GetEventContexts()

Access the event contexts for this movie scene player

Public function Virtual Const

UObject *...

 

GetPlaybackContext()

Access the playback context for this movie scene player

Protected function Virtual Const

void

 

ResolveBoundObjects

(
    const FGuid& InBindingId,
    FMovieSceneSequenceID SequenceID,
    UMovieSceneSequence& Sequence,
    UObject* ResolutionContext,
    TArray< UObject*, TInlineAlloc...
)

Resolve objects bound to the specified binding ID

Protected function Virtual

void

 

UpdateCameraCut

(
    UObject* CameraObject,
    const EMovieSceneCameraCutParams& ...
)

Updates the perspective viewports with the actor to view through

Deprecated Functions

Name Description

Public function Const

ULevelSequen...

 

GetLevelSequence()

Please use GetSequence instead.

Public function

void

 

Initialize

(
    ULevelSequence* InLevelSequenc...,
    ULevel* InLevel,
    const FMovieSceneSequencePlaybackSe...
)

Added camera settings to Initialize.

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