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
|
inline |
Destroy a specific previously spawned object, where its binding ID and sequence ID is not known.
| InObject | the object to destroy |
| MOVIESCENE_API void FMovieSceneSpawnRegister::DestroyObjectsByPredicate | ( | IMovieScenePlayer & | Player, |
| const TFunctionRef< bool(const FGuid &, ESpawnOwnership, FMovieSceneSequenceIDRef)> & | Predicate | ||
| ) |
Destroy spawned objects using a custom predicate
| Player | Movie scene player that is ultimately responsible for destroying the objects |
| Predicate | Predicate used for testing whether an object should be destroyed. Returns true for destruction, false to skip. |
| MOVIESCENE_API bool FMovieSceneSpawnRegister::DestroySpawnedObject | ( | const FGuid & | BindingId, |
| FMovieSceneSequenceIDRef | TemplateID, | ||
| IMovieScenePlayer & | Player | ||
| ) |
Destroy a specific previously spawned object
| BindingId | ID of the object to destroy |
| TemplateID | Identifier for the current template we're evaluating |
| Player | Movie scene player that is ultimately responsible for destroying the object |
|
protectedpure virtual |
Destroy a specific previously spawned object
| Object | The object to destroy |
在 FLevelSequenceSpawnRegister 内被实现.
| 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
| BindingId | ID of the object to find |
| TemplateID | Unique ID of the template to look within |
| MOVIESCENE_API void FMovieSceneSpawnRegister::ForgetExternallyOwnedSpawnedObjects | ( | FMovieSceneEvaluationState & | State, |
| IMovieScenePlayer & | Player | ||
| ) |
Purge any memory of any objects that are considered externally owned
| Player | Movie scene player that is ultimately responsible for destroying the objects |
| 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.
| BindingId | ID of the object to spawn |
| TemplateID | Identifier for the current template we're evaluating |
| Player | Movie scene player that is ultimately responsible for spawning the object |
|
protectedpure virtual |
Spawn an object for the specified GUID, from the specified sequence instance.
| Object | ID of the object to spawn |
| TemplateID | Identifier for the current template we're evaluating |
| Player | Movie scene player that is ultimately responsible for spawning the object |
在 FLevelSequenceSpawnRegister 内被实现.