Struct SplineRange.SplineRangeEnumerator
A struct for iterating a SplineRange.
Inherited Members
Namespace: UnityEngine.Splines
Assembly: Unity.Splines.dll
Syntax
public struct SplineRange.SplineRangeEnumerator : IEnumerator<int>, IEnumerator, IDisposable
Constructors
SplineRangeEnumerator(SplineRange)
Constructor for an IEnumerator of a SplineRange.
Declaration
public SplineRangeEnumerator(SplineRange range)
Parameters
| Type | Name | Description |
|---|---|---|
| SplineRange | range | The SplineRange to iterate. |
Properties
Current
Gets the element in the collection at the current position of the enumerator.
Declaration
public int Current { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
Dispose()
IDisposable implementation. SplineSliceEnumerator does not allocate any resources.
Declaration
public void Dispose()
MoveNext()
Advances the enumerator to the next element of the collection.
Declaration
public bool MoveNext()
Returns
| Type | Description |
|---|---|
| bool |
Reset()
Sets the enumerator to its initial position, which is before the first element in the collection.
Declaration
public void Reset()