An entity ledger is responsible for tracking the entites that have been imported for the currently relevant frame of a sequence instance. 更多...
#include <MovieSceneEntityLedger.h>
Public 成员函数 | |
| void | CleanupLinkerEntities (const TSet< FMovieSceneEntityID > &LinkerEntities) |
| Remove linker entity IDs that exist in the specified set since they are no longer valid 更多... | |
| FMovieSceneEntityID | FindImportedEntity (const FMovieSceneEvaluationFieldEntityKey &EntityKey) const |
| Find an imported entity | |
| bool | HasImportedEntity (const FMovieSceneEvaluationFieldEntityKey &EntityKey) const |
| Check whether the specified entity is being tracked by this ledger at all | |
| void | ImportEntity (UMovieSceneEntitySystemLinker *Linker, const FEntityImportSequenceParams &ImportParams, const FMovieSceneEntityComponentField *EntityField, const FMovieSceneEvaluationFieldEntityQuery &Query) |
| Indicate that the specified field entity is currently being evaluated 更多... | |
| void | Invalidate () |
| Invalidate any and all entities that are currently being tracked, causing new linker entities to be created on the next evaluation, and ones to become unlinked (preserving any components with the preserve flag) | |
| bool | IsEmpty () const |
| Check whether this ledger contains any information at all (ie is tracking any global entities, even if it has not created any linker entities for them) | |
| void | TagGarbage (UMovieSceneEntitySystemLinker *Linker) |
| Called in order to tag garbage as NeedsUnlink 更多... | |
| void | UnlinkEverything (UMovieSceneEntitySystemLinker *Linker) |
| Unlink all imported linker entities and their children, whilst maintaining the map of imported entities 更多... | |
| void | UnlinkOneShots (UMovieSceneEntitySystemLinker *Linker) |
| Unlink all imported one-shot linker entities and their children and clear the list of one shots 更多... | |
| void | UpdateEntities (UMovieSceneEntitySystemLinker *Linker, const FEntityImportSequenceParams &ImportParams, const FMovieSceneEntityComponentField *EntityField, const FMovieSceneEvaluationFieldEntitySet &NewEntities) |
| To be called any time this ledger's instance is to be evaluated with a different set of entities - updates the set of entities that are required for the current evaluation environment 更多... | |
| void | UpdateOneShotEntities (UMovieSceneEntitySystemLinker *Linker, const FEntityImportSequenceParams &ImportParams, const FMovieSceneEntityComponentField *EntityField, const FMovieSceneEvaluationFieldEntitySet &NewEntities) |
| Update any one-shot entities for the current frame 更多... | |
An entity ledger is responsible for tracking the entites that have been imported for the currently relevant frame of a sequence instance.
It is responsible for linking and unlinking new and expired entities in the linker's entity manager based on the current set of entities required for evaluation.
| void UE::MovieScene::FEntityLedger::CleanupLinkerEntities | ( | const TSet< FMovieSceneEntityID > & | LinkerEntities | ) |
Remove linker entity IDs that exist in the specified set since they are no longer valid
| LinkerEntities | Set of entity IDs that have been destroyed |
| void UE::MovieScene::FEntityLedger::ImportEntity | ( | UMovieSceneEntitySystemLinker * | Linker, |
| const FEntityImportSequenceParams & | ImportParams, | ||
| const FMovieSceneEntityComponentField * | EntityField, | ||
| const FMovieSceneEvaluationFieldEntityQuery & | Query | ||
| ) |
Indicate that the specified field entity is currently being evaluated
| Linker | The linker To import into |
| InstanceHandle | A handle to the sequence instance that the entity relates to (relating to Linker->GetInstanceRegistry()) |
| Entity | The field entity that is being imported |
| void UE::MovieScene::FEntityLedger::TagGarbage | ( | UMovieSceneEntitySystemLinker * | Linker | ) |
Called in order to tag garbage as NeedsUnlink
| Linker | The linker that owns this ledger |
| void UE::MovieScene::FEntityLedger::UnlinkEverything | ( | UMovieSceneEntitySystemLinker * | Linker | ) |
Unlink all imported linker entities and their children, whilst maintaining the map of imported entities
| Linker | The linker that owns this ledger |
| void UE::MovieScene::FEntityLedger::UnlinkOneShots | ( | UMovieSceneEntitySystemLinker * | Linker | ) |
Unlink all imported one-shot linker entities and their children and clear the list of one shots
| Linker | The linker that owns this ledger |
| void UE::MovieScene::FEntityLedger::UpdateEntities | ( | UMovieSceneEntitySystemLinker * | Linker, |
| const FEntityImportSequenceParams & | ImportParams, | ||
| const FMovieSceneEntityComponentField * | EntityField, | ||
| const FMovieSceneEvaluationFieldEntitySet & | NewEntities | ||
| ) |
To be called any time this ledger's instance is to be evaluated with a different set of entities - updates the set of entities that are required for the current evaluation environment
| Linker | The linker that owns this ledger |
| ImportParams | Basis for import parameters |
| EntityField | Possibly null if NewEntities is empty- an entity field containing structural information about the sequence |
| NewEntities | A set specifying all the entities required for the next evaluation. Specifying an empty set will unlink all existing entities. |
| void UE::MovieScene::FEntityLedger::UpdateOneShotEntities | ( | UMovieSceneEntitySystemLinker * | Linker, |
| const FEntityImportSequenceParams & | ImportParams, | ||
| const FMovieSceneEntityComponentField * | EntityField, | ||
| const FMovieSceneEvaluationFieldEntitySet & | NewEntities | ||
| ) |
Update any one-shot entities for the current frame
| Linker | The linker that owns this ledger |
| ImportParams | Basis for import parameters |
| EntityField | Possibly null if NewEntities is empty- an entity field containing structural information about the sequence |
| NewEntities | A set specifying all the entities required for the next evaluation. Specifying an empty set will unlink all existing entities. |