Navigation
API > API/Runtime > API/Runtime/MassEntity > API/Runtime/MassEntity/UMassCompositeProcessor
Description
RequestedGroupName can indicate a multi-level group name, like so: A.B.C We need to extract the highest-level group name ('A' in the example), and see if it already exists. If not, create it.
| Name | FindOrAddGroupProcessor |
| Type | function |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassProcessor.h |
| Include Path | #include "MassProcessor.h" |
| Source | /Engine/Source/Runtime/MassEntity/Private/MassProcessor.cpp |
UMassCompositeProcessor * FindOrAddGroupProcessor
(
FName RequestedGroupName,
FString * OutRemainingGroupName
)
Parameters
| Name | Remarks |
|---|---|
| RequestedGroupName | name of the group for which we want to find or create the processor. |
| OutRemainingGroupName | contains the group name after cutting the high-level group. In the used example it will contain "B.C". This value is then used to recursively create subgroups |