Navigation
API > API/Runtime > API/Runtime/MassCore
A handle to a Mass entity. An entity is used in conjunction with the FMassEntityManager for the current world and can contain lightweight fragments.
| Name | FMassEntityHandle |
| Type | struct |
| Header File | /Engine/Source/Runtime/Mass/MassCore/Public/Mass/EntityHandle.h |
| Include Path | #include "Mass/EntityHandle.h" |
Syntax
USTRUCT (BlueprintType )
struct FMassEntityHandle
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Mass/EntityHandle.h | |||
FMassEntityHandle
(
const int32 InIndex, |
Mass/EntityHandle.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Index | int32 | Mass/EntityHandle.h |
|
|
| SerialNumber | int32 | Mass/EntityHandle.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
uint64 AsNumber() |
Relying on the fact that this struct only stores 2 integers and is aligned correctly. | Mass/EntityHandle.h | |
FString DebugGetDescription() |
Mass/EntityHandle.h | ||
bool IsSet () |
Note that this function is merely checking if Index and SerialNumber are set. | Mass/EntityHandle.h | |
bool IsValid() |
Mass/EntityHandle.h | ||
void Reset() |
Mass/EntityHandle.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FMassEntityHandle FromNumber
(
uint64 Value |
Reconstruct the entity handle from an anonymously shared integer. | Mass/EntityHandle.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator!=
(
const FMassEntityHandle Other |
Mass/EntityHandle.h | ||
bool operator==
(
const FMassEntityHandle Other |
Mass/EntityHandle.h |