Navigation
API > API/Runtime > API/Runtime/MassEntity > API/Runtime/MassEntity/FMassFragmentRequirements
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMassFragmentRequirements & AddLinkedEntityRequirement
(
const EMassFragmentAccess AccessMode |
Adds an access requirement for a fragment on a linked entity. | MassRequirements.h | |
FMassFragmentRequirements & AddLinkedEntityRequirement
(
TNotNull< const UScriptStruct* > FragmentType, |
Adds an access requirement for a fragment on a linked entity. | MassRequirements.h |
AddLinkedEntityRequirement(const EMassFragmentAccess)
Description
Adds an access requirement for a fragment on a linked entity. This is a specialization of Indirect fragment access that requires the target entity be "Linked" To link an entity, add a FMassEntityLinkFragment to the entities you want to link from and set the LinkedEntityHandle to the target entity. FMassEntityLinkFragment can be inherited to support specific link types and multiple linked entities. Linking entities this way will group all entities that link to the target entity in memory for better cache behavior when iterating through query results.
| Name | AddLinkedEntityRequirement |
| Type | function |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassRequirements.h |
| Include Path | #include "MassRequirements.h" |
template<UE::Mass::CFragment T, typename TLinkFragment>
FMassFragmentRequirements & AddLinkedEntityRequirement
(
const EMassFragmentAccess AccessMode
)
AddLinkedEntityRequirement(TNotNull< const UScriptStruct >, const EMassFragmentAccess, TNotNull< const UScriptStruct >)
Description
Adds an access requirement for a fragment on a linked entity. This is a specialization of Indirect fragment access that requires the target entity be "Linked" To link an entity, add a FMassEntityLinkFragment to the entities you want to link from and set the LinkedEntityHandle to the target entity. FMassEntityLinkFragment can be inherited to support specific link types and multiple linked entities. Linking entities this way will group all entities that link to the target entity in memory for better cache behavior when iterating through query results.
| Name | AddLinkedEntityRequirement |
| Type | function |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassRequirements.h |
| Include Path | #include "MassRequirements.h" |
FMassFragmentRequirements & AddLinkedEntityRequirement
(
TNotNull< const UScriptStruct * > FragmentType,
const EMassFragmentAccess AccessMode,
TNotNull< const UScriptStruct * > LinkType
)