Struct SpatialTriggerResult
Zero-allocation result of a trigger region evaluation. Contains EntityIds of entities that entered, left, or stayed.
Spans point into system-internal buffers and are valid only until the next EvaluateRegion call.
public readonly ref struct SpatialTriggerResult
- Inherited Members
Fields
Entered
EntityIds of entities that entered the region since the last evaluation.
public readonly ReadOnlySpan<long> Entered
Field Value
Left
EntityIds of entities that left the region since the last evaluation.
public readonly ReadOnlySpan<long> Left
Field Value
StayCount
Count of entities still inside the region (IDs not materialized for performance).
public readonly int StayCount
Field Value
WasEvaluated
True if the region was actually evaluated this tick (false when skipped due to frequency gating).
public readonly bool WasEvaluated