Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetEnumerator()

Allows traversing the results of the query with foreach without creating GC allocations.
Read time 1 minuteLast updated 10 days ago

Definition

public UQueryState<T>.Enumerator GetEnumerator()

Returns

Type

Description

EnumeratorA UQueryState<T>.Enumerator instance configured to traverse the results.