![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <MovieSceneEntityLedger.h>
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.
| bool UE::MovieScene::FEntityLedger::CanImportEntity | ( | UMovieSceneEntitySystemLinker * | Linker, |
| const FEntityImportSequenceParams & | ImportParams, | ||
| const FMovieSceneEntityComponentField * | EntityField, | ||
| const FMovieSceneEvaluationFieldEntityQuery & | Query, | ||
| FMovieSceneEvaluationFieldEntitySet & | OutPerTickConditionalEntities, | ||
| TMap< uint32, bool > & | ConditionResultCache, | ||
| bool | bUpdatingPerTickEntities = false |
||
| ) |
| 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 |
| bool UE::MovieScene::FEntityLedger::Contains | ( | UMovieSceneEntitySystemLinker * | Linker, |
| const FEntityComponentFilter & | Filter | ||
| ) | const |
Check whether any of the entities in this ledger or their children match the specified filter
| void UE::MovieScene::FEntityLedger::FindImportedEntities | ( | TWeakObjectPtr< UObject > | EntityOwner, |
| TArray< FMovieSceneEntityID > & | OutEntityIDs | ||
| ) | const |
Find imported entities
| FMovieSceneEntityID UE::MovieScene::FEntityLedger::FindImportedEntity | ( | const FMovieSceneEvaluationFieldEntityKey & | EntityKey | ) | const |
Find an imported entity
| bool UE::MovieScene::FEntityLedger::HasImportedEntity | ( | const FMovieSceneEvaluationFieldEntityKey & | EntityKey | ) | const |
Check whether the specified entity is being tracked by this ledger at all
| void UE::MovieScene::FEntityLedger::ImportEntity | ( | UMovieSceneEntitySystemLinker * | Linker, |
| const FEntityImportSequenceParams & | ImportParams, | ||
| const FMovieSceneEntityComponentField * | EntityField, | ||
| const FMovieSceneEvaluationFieldEntityQuery & | Query | ||
| ) |
| void UE::MovieScene::FEntityLedger::ImportEntity | ( | UMovieSceneEntitySystemLinker * | Linker, |
| const FEntityImportSequenceParams & | ImportParams, | ||
| const FMovieSceneEntityComponentField * | EntityField, | ||
| const FMovieSceneEvaluationFieldEntityQuery & | Query, | ||
| FMovieSceneEvaluationFieldEntitySet & | OutPerTickConditionalEntities, | ||
| TMap< uint32, bool > & | ConditionResultCache | ||
| ) |
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 |
| OutConditionalEntities | Output set returning conditional entities that require re-evaluating in between full updates. |
| ConditionResultCache | Cache of previous condition results, to be used and potentially modified during any condition checking in updating entities. |
| void UE::MovieScene::FEntityLedger::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 UE::MovieScene::FEntityLedger::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)
|
inline |
| void UE::MovieScene::FEntityLedger::MutateAll | ( | UMovieSceneEntitySystemLinker * | Linker, |
| const FEntityComponentFilter & | Filter, | ||
| const IMovieScenePerEntityMutation & | Mutation | ||
| ) | const |
Mutate all the entities within this ledger by using the specified filter
| 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, |
| EUnlinkEverythingMode | Garbage = EUnlinkEverythingMode::Normal |
||
| ) |
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::UpdateConditionalEntities | ( | UMovieSceneEntitySystemLinker * | Linker, |
| const FEntityImportSequenceParams & | ImportParams, | ||
| const FMovieSceneEntityComponentField * | EntityField, | ||
| const FMovieSceneEvaluationFieldEntitySet & | ConditionalEntities | ||
| ) |
Update any conditional 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 |
| ConditionalEntities | A set specifying any conditional entities that need to be checked again and possibly imported or removed. |
| void UE::MovieScene::FEntityLedger::UpdateEntities | ( | UMovieSceneEntitySystemLinker * | Linker, |
| const FEntityImportSequenceParams & | ImportParams, | ||
| const FMovieSceneEntityComponentField * | EntityField, | ||
| const FMovieSceneEvaluationFieldEntitySet & | NewEntities | ||
| ) |
| void UE::MovieScene::FEntityLedger::UpdateEntities | ( | UMovieSceneEntitySystemLinker * | Linker, |
| const FEntityImportSequenceParams & | ImportParams, | ||
| const FMovieSceneEntityComponentField * | EntityField, | ||
| const FMovieSceneEvaluationFieldEntitySet & | NewEntities, | ||
| FMovieSceneEvaluationFieldEntitySet & | OutPerTickConditionalEntities, | ||
| TMap< uint32, bool > & | ConditionResultCache | ||
| ) |
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. |
| OutConditionalEntities | Output set returning conditional entities that require re-evaluating in between full updates. |
| ConditionResultCache | Cache of previous condition results, to be used and potentially modified during any condition checking in updating entities. |
| void UE::MovieScene::FEntityLedger::UpdateOneShotEntities | ( | UMovieSceneEntitySystemLinker * | Linker, |
| const FEntityImportSequenceParams & | ImportParams, | ||
| const FMovieSceneEntityComponentField * | EntityField, | ||
| const FMovieSceneEvaluationFieldEntitySet & | NewEntities | ||
| ) |
| void UE::MovieScene::FEntityLedger::UpdateOneShotEntities | ( | UMovieSceneEntitySystemLinker * | Linker, |
| const FEntityImportSequenceParams & | ImportParams, | ||
| const FMovieSceneEntityComponentField * | EntityField, | ||
| const FMovieSceneEvaluationFieldEntitySet & | NewEntities, | ||
| TMap< uint32, bool > & | ConditionResultCache | ||
| ) |
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. |
| ConditionResultCache | Cache of previous condition results, to be used and potentially modified during any condition checking in updating entities. |