Navigation
API > API/Runtime > API/Runtime/MassEntity
Specifies entity archetypes that can be created. Does NOT imply a filtering constraint; this is purely an access declaration.
| Name | FMassEntityCreationRequirements |
| Type | struct |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassRequirements.h |
| Include Path | #include "MassRequirements.h" |
Syntax
struct FMassEntityCreationRequirements
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ArchetypeHandles | TArray< FMassArchetypeHandle > | MassRequirements.h | ||
| Compositions | TArray< FMassElementBitSet > | MassRequirements.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddCreatedArchetype
(
const FMassElementBitSet& InComposition |
Add by exact composition | MassRequirements.h | |
void AddCreatedArchetype
(
FMassElementBitSet&& InComposition |
MassRequirements.h | ||
void ClearCreatedArchetypeHandles() |
Clear the list of created archetype handles to force an update | MassRequirements.h | |
bool Contains
(
const FMassElementBitSet& Composition |
Returns true if the required composition list containsthe provided composition | MassRequirements.h | |
void ExportRequirements
(
FMassExecutionRequirements& OutRequirements |
Export as "write" access to all fragment types contained in the declared archetypes | MassRequirements.h | |
const TArray< FMassElementBitSet > & GetCompositions() |
MassRequirements.h | ||
const TArray< FMassArchetypeHandle > & GetCreatedArchetypes() |
Gets the cached array of archetype handles allowed | MassRequirements.h | |
bool HasAny
(
const FMassEntityCreationRequirements& Other |
MassRequirements.h | ||
bool IsEmpty() |
MassRequirements.h | ||
void Reset() |
MassRequirements.h | ||
void ResolveArchetypes
(
const FMassEntityManager& EntityManager |
Populates ArchetypeHandles with all created entity archetypes (EntityManager creates those that don't exist) | MassRequirements.h |