Method GetEnumerator
GetEnumerator()
Provides an enumerator for iterating over the buffer elements.
Declaration
public NativeArray<T>.Enumerator GetEnumerator()
Returns
Type | Description |
---|---|
NativeArray<T>.Enumerator | The enumerator. |
Examples
foreach (var element in buffer)
{
//Use element...
}