docs.unity.cn
    Show / Hide Table of Contents

    Enum PathIndexUnit

    Describes the unit of measurement used by DataPoint<TDataType>.

    Namespace: UnityEngine.Splines
    Syntax
    public enum PathIndexUnit

    Fields

    Name Description Value
    Distance

    The 't' value used when interpolating is measured in game units. Values range from 0 (start of Spline) to GetLength() (end of Spline).


    0
    Normalized

    The 't' value used when interpolating is normalized. Values range from 0 (start of Spline) to 1 (end of Spline).


    1
    Knot

    The 't' value used when interpolating is defined by knot indices and a fractional value representing the normalized interpolation between the specific knot index and the next knot.


    2
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Thursday, April 27, 2023