![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
|
inline |
AbstractSort is a sorting function that only needs to know how many items there are, how to compare items at individual locations - where location is in [0, NumElements) - and how to swap two elements at given locations. The main use case is to sort multiple arrays while keeping them in sync. For example:
TArray<float> Lead = { 3.1, 0.2, 2.6, 1.0 }; TArray<UObject*> Payload = { A, B, C, D };
AbstractSort(Lead.Num() // NumElements , [&Lead](const int32 LHS, const int32 RHS) // Predicate { return Lead[LHS] < Lead[RHS]; } , [&Lead, &Payload](const int32 A, const int32 B) // SwapFunctor { Swap(Lead[A], Lead[B]); Swap(Payload[A], Payload[B]); } );
| BitSetType UE::Mass::Utils::ConstructBitSet | ( | ) |
| FMassFragmentBitSet UE::Mass::Utils::ConstructFragmentBitSet | ( | ) |
| FMassTagBitSet UE::Mass::Utils::ConstructTagBitSet | ( | ) |
| MASSENTITY_API void UE::Mass::Utils::CreateEntityCollections | ( | const FMassEntityManager & | EntityManager, |
| const TConstArrayView< FMassEntityHandle > | Entities, | ||
| const FMassArchetypeEntityCollection::EDuplicatesHandling | DuplicatesHandling, | ||
| TArray< FMassArchetypeEntityCollection > & | OutEntityCollections | ||
| ) |
Fills OutEntityCollections with per-archetype FMassArchetypeEntityCollection instances.
| DuplicatesHandling | used to inform the function whether to expect duplicates. |
| MASSENTITY_API EProcessorExecutionFlags UE::Mass::Utils::DetermineProcessorExecutionFlags | ( | const UWorld * | World, |
| EProcessorExecutionFlags | ExecutionFlagsOverride = EProcessorExecutionFlags::None |
||
| ) |
based on the given World (which can be null) and 'ExecutionFlagsOverride', the function determines the execution flags to use
based on the given World (which can be null), the function determines additional level tick types for the processing phases
| MASSENTITY_API FMassEntityManager * UE::Mass::Utils::GetEntityManager | ( | const UObject * | WorldContextObject | ) |
| MASSENTITY_API FMassEntityManager * UE::Mass::Utils::GetEntityManager | ( | const UWorld * | World | ) |
| MASSENTITY_API FMassEntityManager & UE::Mass::Utils::GetEntityManagerChecked | ( | const UWorld & | World | ) |
| MASSENTITY_API EProcessorExecutionFlags UE::Mass::Utils::GetProcessorExecutionFlagsForWorld | ( | const UWorld & | World | ) |
returns the current execution mode for the processors calculated from the world network mode