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