Navigation
API > API/Runtime > API/Runtime/MassEntity > API/Runtime/MassEntity/FEntityBuilder
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FEntityBuilder & AddRelation
(
FMassEntityHandle OtherEntity, |
Templated helper function for calling the other AddRelation function | MassEntityBuilder.h | |
FEntityBuilder & AddRelation
(
UE::Mass::FTypeHandle RelationTypeHandle, |
Adds information about a specific relation instance to be added once the entity gets created. | MassEntityBuilder.h |
AddRelation(FMassEntityHandle, Relations::ERelationRole)
Description
Templated helper function for calling the other AddRelation function
| Name | AddRelation |
| Type | function |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassEntityBuilder.h |
| Include Path | #include "MassEntityBuilder.h" |
template<UE::Mass::CRelation T>
FEntityBuilder & AddRelation
(
FMassEntityHandle OtherEntity,
Relations::ERelationRole InputEntityRole
)
AddRelation(UE::Mass::FTypeHandle, FMassEntityHandle, Relations::ERelationRole)
Description
Adds information about a specific relation instance to be added once the entity gets created. The function will simply store the information without any checks for validity or duplication. If you want to override existing relation data call ForEachRelation.
| Name | AddRelation |
| Type | function |
| Header File | /Engine/Source/Runtime/MassEntity/Public/MassEntityBuilder.h |
| Include Path | #include "MassEntityBuilder.h" |
| Source | /Engine/Source/Runtime/MassEntity/Private/MassEntityBuilder.cpp |
FEntityBuilder & AddRelation
(
UE::Mass::FTypeHandle RelationTypeHandle,
FMassEntityHandle OtherEntity,
Relations::ERelationRole InputEntityRole
)