engine
 
载入中...
搜索中...
未找到
类 | Public 成员函数 | Protected 成员函数 | Protected 属性 | 所有成员列表
FMovieSceneSpawnRegister类 参考abstract

Class responsible for managing spawnables in a movie scene 更多...

#include <MovieSceneSpawnRegister.h>

+ 类 FMovieSceneSpawnRegister 继承关系图:

类

struct  FMovieSceneSpawnRegisterKey
 Helper key type for mapping a guid and sequence instance to a specific value 更多...
 
struct  FSpawnedObject
 Structure holding information pertaining to a spawned object 更多...
 

Public 成员函数

MOVIESCENE_API void CleanUp (IMovieScenePlayer &Player)
 Called to indiscriminately clean up any spawned objects
 
MOVIESCENE_API void CleanUpSequence (FMovieSceneSequenceIDRef TemplateID, IMovieScenePlayer &Player)
 Called to clean up any non-externally owned spawnables that were spawned from the specified instance
 
void DestroyObjectDirectly (UObject &InObject)
 Destroy a specific previously spawned object, where its binding ID and sequence ID is not known. 更多...
 
MOVIESCENE_API void DestroyObjectsByPredicate (IMovieScenePlayer &Player, const TFunctionRef< bool(const FGuid &, ESpawnOwnership, FMovieSceneSequenceIDRef)> &Predicate)
 Destroy spawned objects using a custom predicate 更多...
 
MOVIESCENE_API bool DestroySpawnedObject (const FGuid &BindingId, FMovieSceneSequenceIDRef TemplateID, IMovieScenePlayer &Player)
 Destroy a specific previously spawned object 更多...
 
MOVIESCENE_API TWeakObjectPtr FindSpawnedObject (const FGuid &BindingId, FMovieSceneSequenceIDRef TemplateID) const
 Attempt to find a previously spawned object represented by the specified object and template IDs 更多...
 
MOVIESCENE_API void ForgetExternallyOwnedSpawnedObjects (FMovieSceneEvaluationState &State, IMovieScenePlayer &Player)
 Purge any memory of any objects that are considered externally owned 更多...
 
MOVIESCENE_API void OnSequenceExpired (FMovieSceneSequenceIDRef TemplateID, IMovieScenePlayer &Player)
 Called when the current time has moved beyond the specified sequence's play range
 
MOVIESCENE_API UObject * SpawnObject (const FGuid &BindingId, UMovieScene &MovieScene, FMovieSceneSequenceIDRef Template, IMovieScenePlayer &Player)
 Spawn an object for the specified GUID, from the specified sequence instance. 更多...
 
virtual ~FMovieSceneSpawnRegister ()
 Virtual destructor
 
- Public 成员函数 继承自 TSharedFromThis< FMovieSceneSpawnRegister >
TSharedRef< FMovieSceneSpawnRegister, Mode > AsShared ()
 Provides access to a shared reference to this object. 更多...
 
TSharedRef< FMovieSceneSpawnRegister const, Mode > AsShared () const
 Provides access to a shared reference to this object (const.) Note that is only valid to call this after a shared reference (or shared pointer) to the object has already been created. 更多...
 
FORCEINLINE bool DoesSharedInstanceExist () const
 Checks whether our referenced instance is valid (ie, whether it's safe to call AsShared). 更多...
 
FORCEINLINE void UpdateWeakReferenceInternal (TSharedPtr< SharedPtrType, Mode > const *InSharedPtr, OtherType *InObject) const
 INTERNAL USE ONLY – Do not call this method. 更多...
 
FORCEINLINE void UpdateWeakReferenceInternal (TSharedRef< SharedRefType, Mode > const *InSharedRef, OtherType *InObject) const
 INTERNAL USE ONLY – Do not call this method. 更多...
 

Protected 成员函数

virtual void DestroySpawnedObject (UObject &Object)=0
 Destroy a specific previously spawned object 更多...
 
virtual void PreDestroyObject (UObject &Object, const FGuid &BindingId, FMovieSceneSequenceIDRef TemplateID)
 Called right before a spawned object with the specified ID and template ID is destroyed
 
virtual UObject * SpawnObject (FMovieSceneSpawnable &Spawnable, FMovieSceneSequenceIDRef TemplateID, IMovieScenePlayer &Player)=0
 Spawn an object for the specified GUID, from the specified sequence instance. 更多...
 
- Protected 成员函数 继承自 TSharedFromThis< FMovieSceneSpawnRegister >
FORCEINLINE TSharedFromThis & operator= (TSharedFromThis const &)
 Hidden stub assignment operator
 
 TSharedFromThis ()
 Hidden stub constructor
 
 TSharedFromThis (TSharedFromThis const &)
 Hidden stub copy constructor
 
 ~TSharedFromThis ()
 Hidden destructor
 

Protected 属性

TMap< FMovieSceneSpawnRegisterKey, FSpawnedObject > Register
 Register of spawned objects
 

额外继承的成员函数

- 静态 Protected 成员函数 继承自 TSharedFromThis< FMovieSceneSpawnRegister >
static FORCEINLINE TSharedRef< OtherType const, Mode > SharedThis (const OtherType *ThisPtr)
 Provides access to a shared reference to an object, given the object's 'this' pointer. 更多...
 
static FORCEINLINE TSharedRef< OtherType, Mode > SharedThis (OtherType *ThisPtr)
 Provides access to a shared reference to an object, given the object's 'this' pointer. 更多...
 

详细描述

Class responsible for managing spawnables in a movie scene

成员函数说明

◆ DestroyObjectDirectly()

void FMovieSceneSpawnRegister::DestroyObjectDirectly ( UObject &  InObject)
inline

Destroy a specific previously spawned object, where its binding ID and sequence ID is not known.

注解
Should only be used for restoring pre-animated state, or where it is otherwise impossible to call DestroySpawnedObject
参数
InObjectthe object to destroy

◆ DestroyObjectsByPredicate()

MOVIESCENE_API void FMovieSceneSpawnRegister::DestroyObjectsByPredicate ( IMovieScenePlayer &  Player,
const TFunctionRef< bool(const FGuid &, ESpawnOwnership, FMovieSceneSequenceIDRef)> &  Predicate 
)

Destroy spawned objects using a custom predicate

参数
PlayerMovie scene player that is ultimately responsible for destroying the objects
PredicatePredicate used for testing whether an object should be destroyed. Returns true for destruction, false to skip.

◆ DestroySpawnedObject() [1/2]

MOVIESCENE_API bool FMovieSceneSpawnRegister::DestroySpawnedObject ( const FGuid &  BindingId,
FMovieSceneSequenceIDRef  TemplateID,
IMovieScenePlayer &  Player 
)

Destroy a specific previously spawned object

参数
BindingIdID of the object to destroy
TemplateIDIdentifier for the current template we're evaluating
PlayerMovie scene player that is ultimately responsible for destroying the object
返回
True if an object was destroyed, false otherwise

◆ DestroySpawnedObject() [2/2]

virtual void FMovieSceneSpawnRegister::DestroySpawnedObject ( UObject &  Object)
protectedpure virtual

Destroy a specific previously spawned object

参数
ObjectThe object to destroy

在 FLevelSequenceSpawnRegister 内被实现.

◆ FindSpawnedObject()

MOVIESCENE_API TWeakObjectPtr FMovieSceneSpawnRegister::FindSpawnedObject ( const FGuid &  BindingId,
FMovieSceneSequenceIDRef  TemplateID 
) const

Attempt to find a previously spawned object represented by the specified object and template IDs

参数
BindingIdID of the object to find
TemplateIDUnique ID of the template to look within
返回
The spawned object if found; nullptr otherwise.

◆ ForgetExternallyOwnedSpawnedObjects()

MOVIESCENE_API void FMovieSceneSpawnRegister::ForgetExternallyOwnedSpawnedObjects ( FMovieSceneEvaluationState &  State,
IMovieScenePlayer &  Player 
)

Purge any memory of any objects that are considered externally owned

参数
PlayerMovie scene player that is ultimately responsible for destroying the objects

◆ SpawnObject() [1/2]

MOVIESCENE_API UObject * FMovieSceneSpawnRegister::SpawnObject ( const FGuid &  BindingId,
UMovieScene &  MovieScene,
FMovieSceneSequenceIDRef  Template,
IMovieScenePlayer &  Player 
)

Spawn an object for the specified GUID, from the specified sequence instance.

参数
BindingIdID of the object to spawn
TemplateIDIdentifier for the current template we're evaluating
PlayerMovie scene player that is ultimately responsible for spawning the object
返回
the spawned object, or nullptr on failure

◆ SpawnObject() [2/2]

virtual UObject * FMovieSceneSpawnRegister::SpawnObject ( FMovieSceneSpawnable &  Spawnable,
FMovieSceneSequenceIDRef  TemplateID,
IMovieScenePlayer &  Player 
)
protectedpure virtual

Spawn an object for the specified GUID, from the specified sequence instance.

参数
ObjectID of the object to spawn
TemplateIDIdentifier for the current template we're evaluating
PlayerMovie scene player that is ultimately responsible for spawning the object
返回
the spawned object, or nullptr on failure

在 FLevelSequenceSpawnRegister 内被实现.


该类的文档由以下文件生成: