UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::MovieScene::FSubSequencePath Struct Reference

#include <MovieSceneRootOverridePath.h>

Public Member Functions

MOVIESCENE_API FSubSequencePath ()
 
MOVIESCENE_API FSubSequencePath (FMovieSceneSequenceID LeafID, TSharedRef< const FSharedPlaybackState > SharedPlaybackState)
 
MOVIESCENE_API FSubSequencePath (FMovieSceneSequenceID LeafID, IMovieScenePlayer &Player)
 
MOVIESCENE_API FSubSequencePath (FMovieSceneSequenceID LeafID, const FMovieSceneSequenceHierarchy *RootHierarchy)
 
FMovieSceneSequenceID ResolveChildSequenceID (FMovieSceneSequenceID SequenceID) const
 
MOVIESCENE_API void Reset ()
 
MOVIESCENE_API void Reset (FMovieSceneSequenceID LeafID, const FMovieSceneSequenceHierarchy *RootHierarchy)
 
MOVIESCENE_API bool Contains (FMovieSceneSequenceID SequenceID) const
 
MOVIESCENE_API int32 NumGenerationsFromLeaf (FMovieSceneSequenceID SequenceID) const
 
MOVIESCENE_API int32 NumGenerationsFromRoot (FMovieSceneSequenceID SequenceID) const
 
MOVIESCENE_API FMovieSceneSequenceID MakeLocalSequenceID (FMovieSceneSequenceID ParentSequenceID) const
 
MOVIESCENE_API FMovieSceneSequenceID MakeLocalSequenceID (FMovieSceneSequenceID ParentSequenceID, FMovieSceneSequenceID TargetSequenceID) const
 
MOVIESCENE_API void PushGeneration (FMovieSceneSequenceID AccumulatedSequenceID, FMovieSceneSequenceID UnaccumulatedSequenceID)
 
MOVIESCENE_API void PopTo (FMovieSceneSequenceID ParentSequenceID)
 
MOVIESCENE_API void PopGenerations (int32 NumGenerations)
 

Static Public Member Functions

static MOVIESCENE_API FMovieSceneSequenceID FindCommonParent (const FSubSequencePath &A, const FSubSequencePath &B)
 

Detailed Description

A path of unaccumulated sequence IDs ordered from child->parent->grandparent that is used to generate unique sequenceIDs for inner sequences Optimized for Remap rather than Push/Pop by keeping sequence IDs child-parent order (the order they are required for remapping)

Constructor & Destructor Documentation

◆ FSubSequencePath() [1/4]

UE::MovieScene::FSubSequencePath::FSubSequencePath ( )

Default construction to a root path

◆ FSubSequencePath() [2/4]

UE::MovieScene::FSubSequencePath::FSubSequencePath ( FMovieSceneSequenceID  LeafID,
TSharedRef< const FSharedPlaybackState SharedPlaybackState 
)
explicit

Set up this path from a specific sequence ID that points to a particular sequence in the specified hierarchy

Parameters
LeafIDID of the child-most sequence to include in this path
PlayerPlayer from which to retrieve the hierarchy

◆ FSubSequencePath() [3/4]

UE::MovieScene::FSubSequencePath::FSubSequencePath ( FMovieSceneSequenceID  LeafID,
IMovieScenePlayer Player 
)
explicit

◆ FSubSequencePath() [4/4]

UE::MovieScene::FSubSequencePath::FSubSequencePath ( FMovieSceneSequenceID  LeafID,
const FMovieSceneSequenceHierarchy RootHierarchy 
)
explicit

Set up this path from a specific sequence ID that points to a particular sequence in the specified hierarchy

Parameters
LeafIDID of the child-most sequence to include in this path
RootHierarchyHierarchy to get sequence IDs from

Member Function Documentation

◆ Contains()

bool UE::MovieScene::FSubSequencePath::Contains ( FMovieSceneSequenceID  SequenceID) const

Check whether this path contains the specified sequence ID

Parameters
SequenceIDID of the sequence to check for
Returns
true if this path contains the sequence ID (or SequenceID == MovieSceneSequenceID::Root), false otherwise

◆ FindCommonParent()

FMovieSceneSequenceID UE::MovieScene::FSubSequencePath::FindCommonParent ( const FSubSequencePath A,
const FSubSequencePath B 
)
static

Find the first parent sequence ID that is common to both A and B

Parameters
AThe first sequence path
BThe second sequence path
Returns
The leaf-most parent common to both paths, or MovieSceneSequenceID::Root

◆ MakeLocalSequenceID() [1/2]

FMovieSceneSequenceID UE::MovieScene::FSubSequencePath::MakeLocalSequenceID ( FMovieSceneSequenceID  ParentSequenceID) const
Parameters

return

◆ MakeLocalSequenceID() [2/2]

FMovieSceneSequenceID UE::MovieScene::FSubSequencePath::MakeLocalSequenceID ( FMovieSceneSequenceID  ParentSequenceID,
FMovieSceneSequenceID  TargetSequenceID 
) const

◆ NumGenerationsFromLeaf()

int32 UE::MovieScene::FSubSequencePath::NumGenerationsFromLeaf ( FMovieSceneSequenceID  SequenceID) const

Return the number of generations between this path's leaf node, and the specified sequence ID

Parameters
SequenceIDID of the parent sequence to count generations to
Returns
The number of generations between the two nodes. (ie, 0 where SequenceID == Leaf, 1 for Immediate parents, 2 for grandparents etc)

◆ NumGenerationsFromRoot()

int32 UE::MovieScene::FSubSequencePath::NumGenerationsFromRoot ( FMovieSceneSequenceID  SequenceID) const

Return the number of generations between the root and the specified sequence ID

Parameters
SequenceIDID of the child sequence to count generations to
Returns
The number of generations between the two nodes. (ie, 0 where SequenceID == Root, 1 for Immediate children, 2 for grandchildren)

◆ PopGenerations()

void UE::MovieScene::FSubSequencePath::PopGenerations ( int32  NumGenerations)

◆ PopTo()

void UE::MovieScene::FSubSequencePath::PopTo ( FMovieSceneSequenceID  ParentSequenceID)

◆ PushGeneration()

void UE::MovieScene::FSubSequencePath::PushGeneration ( FMovieSceneSequenceID  AccumulatedSequenceID,
FMovieSceneSequenceID  UnaccumulatedSequenceID 
)

◆ Reset() [1/2]

void UE::MovieScene::FSubSequencePath::Reset ( )

Reset this path to its default state (pointing to the root sequence)

◆ Reset() [2/2]

void UE::MovieScene::FSubSequencePath::Reset ( FMovieSceneSequenceID  LeafID,
const FMovieSceneSequenceHierarchy RootHierarchy 
)

Set up this path from a specific sequence ID that points to a particular sequence in the specified hierarchy

Parameters
LeafIDID of the child-most sequence to include in this path
RootHierarchyHierarchy to get sequence IDs from

◆ ResolveChildSequenceID()

FMovieSceneSequenceID UE::MovieScene::FSubSequencePath::ResolveChildSequenceID ( FMovieSceneSequenceID  SequenceID) const
inline

Remap the specified sequence ID based on the currently evaluating sequence path, to the Root

Parameters
SequenceIDThe sequence ID to find a template for
Returns
Pointer to a template instance, or nullptr if the ID was not found

The documentation for this struct was generated from the following files: