Skip to content

Sein Entity Handle

Struct · FSeinEntityHandle

#include "Core/SeinEntityHandle.h"

deterministic: safe in simulation code

Generational entity handle. Combines a slot index with a generation counter to detect stale references after entity recycling.

int32 Index

Blueprint read-only

The entity’s slot in the entity pool. Zero is reserved and never a valid entity.

int32 Generation

Blueprint read-only

How many times the slot has been reused. A handle whose generation no longer matches the slot refers to an entity that has been destroyed.

C++ members (6)
  • static FSeinEntityHandle Invalid(); Invalid handle constant (index 0, generation 0)
  • bool IsValid() const; A valid handle always names a non-reserved slot and positive generation.
  • bool operator==(const FSeinEntityHandle& Other) const;
  • bool operator!=(const FSeinEntityHandle& Other) const;
  • bool operator<(const FSeinEntityHandle& Other) const;
  • FString ToString() const;