Struct SplineRange
Describes a subset of knot indices in a Spline. The range might iterate in either the forward or backward direction.
Inherited Members
Namespace: UnityEngine.Splines
Assembly: solution.dll
Syntax
[Serializable]
public struct SplineRange : IEnumerable<int>, IEnumerable
Constructors
Name | Description |
---|---|
SplineRange(int, int) | Creates a new SplineRange from a start index and count. |
SplineRange(int, int, SliceDirection) | Creates a new SplineRange from a start index and count. |
Properties
Name | Description |
---|---|
Count | Returns the number of indices. |
Direction | The direction that this range interpolates. Forward increments the knot index when it iterates, whereas Backward decrements this index. |
End | The inclusive end index of this range. |
this[int] | Get or set the Spline knot index at an index
|
Start | The inclusive first index, starting at 0. |
Methods
Name | Description |
---|---|
GetEnumerator() | Get an enumerator that iterates through the index collection. Note that this will either increment or decrement indices depending on the value of the Direction property. |
ToString() | Returns a string summary of this range. |