Class SplinePath
The SplinePath type is an implementation of ISpline that is composed of multiple sections of other splines (see SplineSlice<T>). This is useful when you want to evaluate a path that follows multiple splines, typically in the case where splines share linked knots.
Inherited Members
Namespace: UnityEngine.Splines
Syntax
public class SplinePath : SplinePath<SplineSlice<Spline>>, ISpline, IReadOnlyList<BezierKnot>, IReadOnlyCollection<BezierKnot>, IEnumerable<BezierKnot>, IEnumerable, IHasEmptyCurves
Constructors
SplinePath(IEnumerable<SplineSlice<Spline>>)
Creates a new SplinePath from a collection of SplineSlice<T>.
Declaration
public SplinePath(IEnumerable<SplineSlice<Spline>> slices)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<SplineSlice<Spline>> | slices | The splines to create this path with. |