engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
UE::MovieScene::FSequenceInstance结构体 参考

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. 更多...

#include <MovieSceneSequenceInstance.h>

Public 成员函数

void DestroyImmediately (UMovieSceneEntitySystemLinker *Linker)
 Destroy this sequence instance immediately - Finish must previously have been called
 
void DissectContext (UMovieSceneEntitySystemLinker *Linker, const FMovieSceneContext &Context, TArray< TRange< FFrameTime > > &OutDissections)
 Called only for top-level sequence instances before any updates to it with the specified context. 更多...
 
FMovieSceneEntityID FindEntity (UObject *Owner, uint32 EntityID) const
 Attempt to locate an entity given its owner and ID
 
FInstanceHandle FindSubInstance (FMovieSceneSequenceID SequenceID) const
 Attempt to locate a sub instance based on its sequence ID
 
void Finish (UMovieSceneEntitySystemLinker *Linker)
 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. 更多...
 
 FSequenceInstance (const FSequenceInstance &)=delete
 Sequence instances are not copyable
 
 FSequenceInstance (FSequenceInstance &&)
 Move constructors implemented in cpp to avoid includes for TUniquePtr
 
 FSequenceInstance (UMovieSceneEntitySystemLinker *Linker, IMovieScenePlayer *Player, FInstanceHandle ThisInstanceHandle)
 Constructor for top level sequences
 
 FSequenceInstance (UMovieSceneEntitySystemLinker *Linker, IMovieScenePlayer *Player, FInstanceHandle ThisInstanceHandle, FInstanceHandle RootInstanceHandle, FMovieSceneSequenceID InSequenceID, FMovieSceneCompiledDataID InCompiledDataID)
 Constructor for sub sequences
 
const FMovieSceneContext & GetContext () const
 Get the evaluation context for the current frame 更多...
 
const FMovieSceneTrackEvaluator * GetLegacyEvaluator () const
 Retrieve the legacy evaluator for this sequence, if it is available (may return nullptr)
 
IMovieScenePlayer * GetPlayer () const
 Retrieve the IMovieScenePlayer that is playing back the top level sequence for this instance 更多...
 
FInstanceHandle GetRootInstanceHandle () const
 Get a handle to the root instance for this sub sequence instance 更多...
 
FMovieSceneSequenceID GetSequenceID () const
 Retrieve the SequenceID for this instance 更多...
 
uint16 GetSerialNumber () const
 Get the serial number for this sequence instance that it was created with on construction. 更多...
 
bool HasEverUpdated () const
 Check whether this sequence instance has ever been updated or not
 
bool HasFinished () const
 Check whether this sequence instance has finished evaluating 更多...
 
void InvalidateCachedData (UMovieSceneEntitySystemLinker *Linker)
 Invalidate any cached data that may be being used for evaluation due to a change in the source asset data
 
bool IsRootSequence () const
 Returns whether this instance is the root instance.
 
bool IsSubSequence () const
 Returns whether this instance is a sub sequence.
 
void OverrideRootSequence (UMovieSceneEntitySystemLinker *Linker, FMovieSceneSequenceID NewRootSequenceID)
 Called to override the simulated root sequence ID for this instance. 更多...
 
void PostEvaluation (UMovieSceneEntitySystemLinker *Linker)
 Called when this sequence instance has been evaluated in order for it to do any clean-up or other post-update work 更多...
 
void PreEvaluation (UMovieSceneEntitySystemLinker *Linker)
 Called when this instance has been queued for evaluation in order for it to do any pre-work setup. 更多...
 
void SetContext (const FMovieSceneContext &InContext)
 Get the evaluation context for the current frame 更多...
 
void SetFinished (bool bInFinished)
 Indicate that this sequence instance has finished evaluation and should remove its entities
 
void Start (UMovieSceneEntitySystemLinker *Linker, const FMovieSceneContext &InContext)
 Called for root level instances that have either never evaluated, or have previously finished evaluating 更多...
 
void Update (UMovieSceneEntitySystemLinker *Linker, const FMovieSceneContext &InContext)
 Called after dissection for root level instances in order for this sequence instacne to update any entities it needs for evaluation. 更多...
 
 ~FSequenceInstance ()
 Destructor
 

Public 属性

FEntityLedger Ledger
 Ledger that tracks all currently instantiated entities for this instance
 

详细描述

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

成员函数说明

◆ DissectContext()

void UE::MovieScene::FSequenceInstance::DissectContext ( UMovieSceneEntitySystemLinker *  Linker,
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.

参数
LinkerThe linker that owns this sequence instance
ContextThe overall context that this sequence instance is being evaluated with
OutDissectionsAn array to populate with dissected time ranges that should be evaluated separately, in order.

◆ Finish()

void UE::MovieScene::FSequenceInstance::Finish ( UMovieSceneEntitySystemLinker *  Linker)

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.

参数
LinkerThe linker that owns this sequence instance

◆ GetContext()

const FMovieSceneContext & UE::MovieScene::FSequenceInstance::GetContext ( ) const
inline

Get the evaluation context for the current frame

返回
This sequence instance's playback context

◆ GetPlayer()

IMovieScenePlayer * UE::MovieScene::FSequenceInstance::GetPlayer ( ) const

Retrieve the IMovieScenePlayer that is playing back the top level sequence for this instance

返回
A pointer to this instance's player

◆ GetRootInstanceHandle()

FInstanceHandle UE::MovieScene::FSequenceInstance::GetRootInstanceHandle ( ) const
inline

Get a handle to the root instance for this sub sequence instance

返回
A handle to the root sequence instance for this sub sequence, or a handle to this sequence instance if it is not a sub sequence

◆ GetSequenceID()

FMovieSceneSequenceID UE::MovieScene::FSequenceInstance::GetSequenceID ( ) const
inline

Retrieve the SequenceID for this instance

返回
This sequence instance's SequenceID within the root-sequences hierachy, or MovieSceneSequenceID::Root for master sequence instances.

◆ GetSerialNumber()

uint16 UE::MovieScene::FSequenceInstance::GetSerialNumber ( ) const
inline

Get the serial number for this sequence instance that it was created with on construction.

返回
The serial number of this instance that is used to check that handles to it are still valid.

◆ HasFinished()

bool UE::MovieScene::FSequenceInstance::HasFinished ( ) const
inline

Check whether this sequence instance has finished evaluating

返回
True if this sequence has finished evaluation, false otherwise

◆ OverrideRootSequence()

void UE::MovieScene::FSequenceInstance::OverrideRootSequence ( UMovieSceneEntitySystemLinker *  Linker,
FMovieSceneSequenceID  NewRootSequenceID 
)

Called to override the simulated root sequence ID for this instance.

Only valid for IsRootSequence() instances.

◆ PostEvaluation()

void UE::MovieScene::FSequenceInstance::PostEvaluation ( UMovieSceneEntitySystemLinker *  Linker)

Called when this sequence instance has been evaluated in order for it to do any clean-up or other post-update work

参数
LinkerThe linker that owns this sequence instance

◆ PreEvaluation()

void UE::MovieScene::FSequenceInstance::PreEvaluation ( UMovieSceneEntitySystemLinker *  Linker)

Called when this instance has been queued for evaluation in order for it to do any pre-work setup.

参数
LinkerThe linker that owns this sequence instance

◆ SetContext()

void UE::MovieScene::FSequenceInstance::SetContext ( const FMovieSceneContext &  InContext)
inline

Get the evaluation context for the current frame

返回
This sequence instance's playback context

◆ Start()

void UE::MovieScene::FSequenceInstance::Start ( UMovieSceneEntitySystemLinker *  Linker,
const FMovieSceneContext &  InContext 
)

Called for root level instances that have either never evaluated, or have previously finished evaluating

参数
LinkerThe linker that owns this sequence instance
InContextThe context that this sequence instance is to be evaluated with

◆ Update()

void UE::MovieScene::FSequenceInstance::Update ( UMovieSceneEntitySystemLinker *  Linker,
const FMovieSceneContext &  InContext 
)

Called after dissection for root level instances in order for this sequence instacne to update any entities it needs for evaluation.

参数
LinkerThe linker that owns this sequence instance
InContextThe (potentially dissected) context that this sequence instance is to be evaluated with

该结构体的文档由以下文件生成: