Navigation
API > API/Runtime > API/Runtime/MassEntity > API/Runtime/MassEntity/FMassEntityQuery > API/Runtime/MassEntity/FMassEntityQuery/GetNumMatchingEntities
References
| Module | MassEntity |
| Header | /Engine/Source/Runtime/MassEntity/Public/MassEntityQuery.h |
| Include | #include "MassEntityQuery.h" |
| Source | /Engine/Source/Runtime/MassEntity/Private/MassEntityQuery.cpp |
int32 GetNumMatchingEntities
(
FMassEntityManager & InEntityManager
)
Remarks
Goes through ValidArchetypes and sums up the number of entities contained in them. Note that the function is not const because calling it can result in re-caching of ValidArchetypes the number of entities this given query would process if called "now"