Struct SplineRange.SplineRangeEnumerator
A struct for iterating a SplineRange.
Inherited Members
Namespace: UnityEngine.Splines
Syntax
public struct SplineRangeEnumerator : IEnumerator<int>, IDisposable, IEnumerator
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 readonly int Current { get; }
Property Value
Type | Description |
---|---|
Int32 |
Implements
Methods
Dispose()
IDisposable implementation. SplineSliceEnumerator does not allocate any resources.
Declaration
public void Dispose()
Implements
MoveNext()
Advances the enumerator to the next element of the collection.
Declaration
public bool MoveNext()
Returns
Type | Description |
---|---|
Boolean |
Implements
Reset()
Sets the enumerator to its initial position, which is before the first element in the collection.
Declaration
public void Reset()
Implements
Explicit Interface Implementations
IEnumerator.Current
Declaration
readonly object IEnumerator.Current { get; }
Returns
Type | Description |
---|---|
Object |