Struct NativeSpline
A read-only representation of Spline that is optimized for efficient access and queries. NativeSpline can be constructed with a spline and Transform. If a transform is applied, all values will be relative to the transformed knot positions.
Implements
Inherited Members
Namespace: UnityEngine .Splines
Assembly: solution.dll
Syntax
public struct NativeSpline : ISpline, IReadOnlyList<BezierKnot>, IReadOnlyCollection<BezierKnot>, IEnumerable<BezierKnot>, IEnumerable, IDisposable
Remarks
NativeSpline is compatible with the job system.
Constructors
Name | Description |
---|---|
Native |
Create a new NativeSpline from a set of Bezier |
Native |
Create a new NativeSpline from a set of Bezier |
Native |
Create a new NativeSpline from a set of Bezier |
Native |
Create a new NativeSpline from a set of Bezier |
Native |
Create a new NativeSpline from a set of Bezier |
Native |
Create a new NativeSpline from a set of Bezier |
Native |
Create a new NativeSpline from a set of Bezier |
Native |
Create a new NativeSpline from a set of Bezier |
Properties
Name | Description |
---|---|
Closed | Whether the spline is open (has a start and end point) or closed (forms an unbroken loop). |
Count | Return the number of knots. |
Curves | A NativeArray of Bezier |
this[int] | Get the knot at |
Knots | A NativeArray of Bezier |
Methods
Name | Description |
---|---|
Dispose() | Release allocated resources. |
Get |
Get a Bezier |
Get |
Return the normalized interpolation (t) corresponding to a distance on a Bezier |
Get |
Get the length of a Bezier |
Get |
Return the up vector for a t ratio on the curve. |
Get |
Get an enumerator that iterates through the Bezier |
Get |
Return the sum of all curve lengths, accounting for Closed state. Note that this value is affected by the transform used to create this NativeSpline. |