Navigation
API > API/Runtime > API/Runtime/MassEntity > API/Runtime/MassEntity/UMassProcessor
Description
Indicates whether this processor can ever be pruned while considered for a phase processing graph. A processor can get pruned if none of its registered queries interact with archetypes instantiated at the moment of graph building. This can also happen for special processors that don't register any queries - if that's the case override this function to return an appropriate value or use QueryBasedPruning to configure the expected behavior. By default, the processor will be the subject of pruning when bRuntimeMode == true.
| Name | ShouldAllowQueryBasedPruning |
| Type | function |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassProcessor.h |
| Include Path | #include "MassProcessor.h" |
| Source | /Engine/Source/Runtime/MassEntity/Private/MassProcessor.cpp |
virtual bool ShouldAllowQueryBasedPruning
(
const bool bRuntimeMode
) const
Parameters
| Name | Remarks |
|---|---|
| bRuntimeMode | indicates whether the pruning is being done for game runtime (true) or editor-time presentation (false) |