Navigation
API > API/Runtime > API/Runtime/MassEntity
Relation fragment base. Every relation entity will get an instance of this type or a type derived from it (as configured via FRelationTypeTraits.RelationFragmentType
| Name | FMassRelationFragment |
| Type | struct |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassEntityRelations.h |
| Include Path | #include "MassEntityRelations.h" |
Syntax
USTRUCT ()
struct FMassRelationFragment : public FMassFragment
Inheritance Hierarchy
- FMassFragment → FMassRelationFragment
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Object | FMassEntityHandle | This is the "what" or "target" part of the relation. | MassEntityRelations.h | |
| Subject | FMassEntityHandle | This is the "who" part of the relation. | MassEntityRelations.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMassEntityHandle GetRole
(
const int32 Index |
MassEntityRelations.h | ||
FMassEntityHandle GetRole
(
const UE::Mass::Relations::ERelationRole Role |
MassEntityRelations.h |