![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <MovieSceneSequenceInstance.h>
Public Attributes | |
| FEntityLedger | Ledger |
Friends | |
| struct | FScopedVolatilityManagerSuppression |
A sequence instance represents a specific instance of a currently playing sequence, either as a top-level sequence in an IMovieScenePlayer, or as a sub sequence. Any given sequence asset may have any number of instances created for it at any given time depending on how many times it is referenced by playing sequences
|
explicit |
Constructor for top level sequences
|
explicit |
Constructor for sub sequences
| UE::MovieScene::FSequenceInstance::~FSequenceInstance | ( | ) |
Destructor
|
delete |
Sequence instances are not copyable
|
default |
Move constructors implemented in cpp to avoid includes for TUniquePtr
| bool UE::MovieScene::FSequenceInstance::CanFinishImmediately | ( | ) | const |
Returns whether this instance can be finished immediately without any last update.
| Linker | The linker that owns this sequence instance |
| bool UE::MovieScene::FSequenceInstance::CanFinishImmediately | ( | UMovieSceneEntitySystemLinker * | Linker | ) | const |
| bool UE::MovieScene::FSequenceInstance::ConditionalRecompile | ( | ) |
Conditionally recompile this sequence if it needs to be
| Linker | The linker that owns this sequence instance |
| bool UE::MovieScene::FSequenceInstance::ConditionalRecompile | ( | UMovieSceneEntitySystemLinker * | Linker | ) |
| void UE::MovieScene::FSequenceInstance::DestroyImmediately | ( | ) |
Destroy this sequence instance immediately - Finish must previously have been called
| void UE::MovieScene::FSequenceInstance::DestroyImmediately | ( | UMovieSceneEntitySystemLinker * | Linker | ) |
| void UE::MovieScene::FSequenceInstance::DissectContext | ( | const FMovieSceneContext & | Context, |
| TArray< TRange< FFrameTime > > & | OutDissections | ||
| ) |
Called only for top-level sequence instances before any updates to it with the specified context. This allows the sequence an opportunity to dissect the context into a series of distinct evaluations to force determinism.
| Linker | The linker that owns this sequence instance |
| Context | The overall context that this sequence instance is being evaluated with |
| OutDissections | An array to populate with dissected time ranges that should be evaluated separately, in order. |
| void UE::MovieScene::FSequenceInstance::DissectContext | ( | UMovieSceneEntitySystemLinker * | Linker, |
| const FMovieSceneContext & | Context, | ||
| TArray< TRange< FFrameTime > > & | OutDissections | ||
| ) |
| bool UE::MovieScene::FSequenceInstance::EvaluateCondition | ( | const FGuid & | BindingID, |
| const FMovieSceneSequenceID & | SequenceID, | ||
| const UMovieSceneCondition * | Condition, | ||
| UObject * | ConditionOwnerObject | ||
| ) | const |
| void UE::MovieScene::FSequenceInstance::FindEntities | ( | UObject * | Owner, |
| TArray< FMovieSceneEntityID > & | OutEntityIDs | ||
| ) | const |
Attempt to locate all entities given their owner
| FMovieSceneEntityID UE::MovieScene::FSequenceInstance::FindEntity | ( | UObject * | Owner, |
| uint32 | EntityID | ||
| ) | const |
Attempt to locate an entity given its owner and ID
| FInstanceHandle UE::MovieScene::FSequenceInstance::FindSubInstance | ( | FMovieSceneSequenceID | SequenceID | ) | const |
Attempt to locate a sub instance based on its sequence ID
| void UE::MovieScene::FSequenceInstance::Finish | ( | ) |
Mark this instance as finished, causing all its entities to be unlinked and the instance to become inactive at the end of the next update.
| Linker | The linker that owns this sequence instance |
| void UE::MovieScene::FSequenceInstance::Finish | ( | UMovieSceneEntitySystemLinker * | Linker | ) |
|
inline |
Get the evaluation context for the current frame
|
inline |
Gets the handle to this instance
|
inline |
Retrieve the legacy evaluator for this sequence, if it is available (may return nullptr)
|
inline |
Get a handle to the parent instance for this sequence instance, or an invalid handle if it is a root instance
| IMovieScenePlayer * UE::MovieScene::FSequenceInstance::GetPlayer | ( | ) | const |
Retrieve the IMovieScenePlayer that is playing back the top level sequence for this instance
| uint16 UE::MovieScene::FSequenceInstance::GetPlayerIndex | ( | ) | const |
Retrieve the IMovieScenePlayer's unique index
|
inline |
Get a handle to the root instance for this sub sequence instance
|
inline |
Retrieve the SequenceID for this instance
|
inline |
Get the serial number for this sequence instance that it was created with on construction.
|
inline |
Retrieve the shared playback state for this instance's hierarchy
| FSubSequencePath UE::MovieScene::FSequenceInstance::GetSubSequencePath | ( | ) | const |
Retrieve a path for this sequence instance back to the root
|
inline |
Retrieve this sequence's update flags
|
inline |
Check whether this sequence instance has ever been updated or not
|
inline |
Check whether this sequence instance has finished evaluating
| void UE::MovieScene::FSequenceInstance::Initialize | ( | ) |
Finish initializing this sequence instance
| void UE::MovieScene::FSequenceInstance::InvalidateCachedData | ( | ESequenceInstanceInvalidationType | InvalidationType = ESequenceInstanceInvalidationType::All | ) |
Invalidate any cached data that may be being used for evaluation due to a change in the source asset data
| void UE::MovieScene::FSequenceInstance::InvalidateCachedData | ( | UMovieSceneEntitySystemLinker * | Linker | ) |
|
inline |
Returns whether this instance is the root instance.
|
inline |
Returns whether this instance is a sub sequence.
|
delete |
|
default |
| void UE::MovieScene::FSequenceInstance::OverrideRootSequence | ( | FMovieSceneSequenceID | NewRootSequenceID | ) |
Called to override the simulated root sequence ID for this instance. Only valid for IsRootSequence() instances.
| void UE::MovieScene::FSequenceInstance::OverrideRootSequence | ( | UMovieSceneEntitySystemLinker * | Linker, |
| FMovieSceneSequenceID | NewRootSequenceID | ||
| ) |
| void UE::MovieScene::FSequenceInstance::PostEvaluation | ( | ) |
Called when this sequence instance has been evaluated in order for it to do any clean-up or other post-update work
| Linker | The linker that owns this sequence instance |
| void UE::MovieScene::FSequenceInstance::PostEvaluation | ( | UMovieSceneEntitySystemLinker * | Linker | ) |
| void UE::MovieScene::FSequenceInstance::PreEvaluation | ( | ) |
Called when this instance has been queued for evaluation in order for it to do any pre-work setup.
| Linker | The linker that owns this sequence instance |
| void UE::MovieScene::FSequenceInstance::PreEvaluation | ( | UMovieSceneEntitySystemLinker * | Linker | ) |
| void UE::MovieScene::FSequenceInstance::RunLegacyTrackTemplates | ( | ) |
Called to run legacy track templates
|
inline |
Get the evaluation context for the current frame
Indicate that this sequence instance has finished evaluation and should remove its entities
| void UE::MovieScene::FSequenceInstance::Start | ( | const FMovieSceneContext & | InContext | ) |
Called for root level instances that have either never evaluated, or have previously finished evaluating
| Linker | The linker that owns this sequence instance |
| InContext | The context that this sequence instance is to be evaluated with |
| void UE::MovieScene::FSequenceInstance::Start | ( | UMovieSceneEntitySystemLinker * | Linker, |
| const FMovieSceneContext & | InContext | ||
| ) |
| void UE::MovieScene::FSequenceInstance::Update | ( | const FMovieSceneContext & | InContext | ) |
Called after dissection for root level instances in order for this sequence instacne to update any entities it needs for evaluation.
| Linker | The linker that owns this sequence instance |
| InContext | The (potentially dissected) context that this sequence instance is to be evaluated with |
| void UE::MovieScene::FSequenceInstance::Update | ( | UMovieSceneEntitySystemLinker * | Linker, |
| const FMovieSceneContext & | InContext | ||
| ) |
| FEntityLedger UE::MovieScene::FSequenceInstance::Ledger |
Ledger that tracks all currently instantiated entities for this instance