docs.unity3d.com
    Show / Hide Table of Contents

    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.

    Inheritance
    Object
    SplinePath<SplineSlice<Spline>>
    SplinePath
    Inherited Members
    SplinePath<SplineSlice<Spline>>.Slices
    SplinePath<SplineSlice<Spline>>.GetEnumerator()
    SplinePath<SplineSlice<Spline>>.IEnumerable.GetEnumerator()
    SplinePath<SplineSlice<Spline>>.Count
    SplinePath<SplineSlice<Spline>>.Item[Int32]
    SplinePath<SplineSlice<Spline>>.Item[SplineKnotIndex]
    SplinePath<SplineSlice<Spline>>.Closed
    SplinePath<SplineSlice<Spline>>.GetLength()
    SplinePath<SplineSlice<Spline>>.EmptyCurves
    SplinePath<SplineSlice<Spline>>.GetCurve(Int32)
    SplinePath<SplineSlice<Spline>>.GetCurveLength(Int32)
    SplinePath<SplineSlice<Spline>>.GetCurveInterpolation(Int32, Single)
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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.

    Extension Methods

    SplineUtility.Evaluate<T>(T, Single, out float3, out float3, out float3)
    SplineUtility.EvaluatePosition<T>(T, Single)
    SplineUtility.EvaluateTangent<T>(T, Single)
    SplineUtility.EvaluateUpVector<T>(T, Single)
    SplineUtility.EvaluateAcceleration<T>(T, Single)
    SplineUtility.EvaluateCurvature<T>(T, Single)
    SplineUtility.EvaluateCurvatureCenter<T>(T, Single)
    SplineUtility.SplineToCurveT<T>(T, Single, out Single)
    SplineUtility.CurveToSplineT<T>(T, Single)
    SplineUtility.CalculateLength<T>(T, float4x4)
    SplineUtility.GetCurveCount<T>(T)
    SplineUtility.GetBounds<T>(T)
    SplineUtility.GetBounds<T>(T, float4x4)
    SplineUtility.GetPointAtLinearDistance<T>(T, Single, Single, out Single)
    SplineUtility.ConvertIndexUnit<T>(T, Single, PathIndexUnit)
    SplineUtility.ConvertIndexUnit<T>(T, Single, PathIndexUnit, PathIndexUnit)
    SplineUtility.PreviousIndex<T>(T, Int32)
    SplineUtility.NextIndex<T>(T, Int32)
    SplineUtility.Previous<T>(T, Int32)
    SplineUtility.Next<T>(T, Int32)
    SplineDataHandles.DataPointHandles<TSpline, TData>(TSpline, SplineData<TData>, Boolean)

    See Also

    SplineRange
    KnotLinkCollection
    SplineKnotIndex
    In This Article
    • Constructors
      • SplinePath(IEnumerable<SplineSlice<Spline>>)
    • Extension Methods
    • See Also
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023