Templated utility class that assists in tracking the state of many -> one data relationships in an FEntityManager. 更多...
#include <MovieSceneOverlappingEntityTracker.h>
被 UE::MovieScene::TOverlappingEntityTracker_BoundObject< UE::MovieScene::FPreAnimAttachment >, UE::MovieScene::TOverlappingEntityTracker_BoundObject< EComponentMobility::Type > , 以及 UE::MovieScene::TOverlappingEntityTracker_BoundObject< UE::MovieScene::FIntermediate3DTransform > 继承.
Public 成员函数 | |
| template<typename HandlerType > | |
| void | Destroy (HandlerType &&InHandler) |
| Destroy all the outputs currently being tracked | |
| template<typename HandlerType > | |
| void | ProcessInvalidatedOutputs (HandlerType &&InHandler) |
| Process any outputs that were invalidated as a result of Update being called using a custom handler. 更多... | |
| void | Update (UMovieSceneEntitySystemLinker *Linker, TComponentTypeID< KeyType > InKeyComponent, const FEntityComponentFilter &InFilter) |
| Update this tracker by iterating any entity that contains InKeyComponent, and matches the additional optional filter Only entities tagged as NeedsLink or NeedsUnlink are iterated, invalidating their outputs | |
| void | UpdateUnlinkedOnly (UMovieSceneEntitySystemLinker *Linker, TComponentTypeID< KeyType > InKeyComponent, const FEntityComponentFilter &InFilter) |
| Update this tracker by iterating any entity that contains InKeyComponent, and matches the additional optional filter Only entities tagged as NeedsUnlink are iterated, invalidating their outputs | |
| void | VisitLinkedAllocation (const FEntityAllocation *Allocation, TRead< KeyType > ReadKeys) |
| Update this tracker by (re)linking the specified allocation | |
| void | VisitUnlinkedAllocation (const FEntityAllocation *Allocation) |
| Update this tracker by unlinking the specified allocation | |
Templated utility class that assists in tracking the state of many -> one data relationships in an FEntityManager.
KeyType defines the component type which defines the key that determines whether an entity animates the same output. OutputType defines the user-specfied data to be associated with the multiple inputs (ie, its output) NOTE: Where KeyType is a UObject* it is recommended TOverlappingEntityTracker_BoundObject is used instead, as it provides garbage collection and reference counting functions.
|
inline |
Process any outputs that were invalidated as a result of Update being called using a custom handler.
InHandler Any user-defined handler type that contains the following named functions: // Called when an output is first created void InitializeOutput(KeyType Object, TArrayView<const FMovieSceneEntityID> Inputs, OutputType* Output, FEntityOutputAggregate Aggregate);
// Called when an output has been updated with new inputs void UpdateOutput(KeyType Object, TArrayView<const FMovieSceneEntityID> Inputs, OutputType* Output, FEntityOutputAggregate Aggregate);
// Called when all an output's inputs are no longer relevant, and as such the output should be destroyed (or restored) void DestroyOutput(KeyType Object, OutputType* Output, FEntityOutputAggregate Aggregate);