Skip to content

Struct Filter.Enumerator ​

Namespace: KenseiECS

Allocation-free enumerator over the matching entity indices, walking the dense array from the end. Removing the current entity during iteration is safe.

csharp
public ref struct Filter.Enumerator

Inherited Members ​

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Properties ​

Current ​

Entity index at the current position.

csharp
public int Current { get; }

Property Value ​

int

Methods ​

MoveNext() ​

Advances to the previous dense slot.

csharp
public bool MoveNext()

Returns ​

bool

False when all entities have been visited.