docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CalculateLength

    CalculateLength()

    Calculate the length of Spline in world space.

    Declaration
    public float CalculateLength()
    Returns
    Type Description
    float

    The length of Spline in world space

    CalculateLength(int)

    Calculates the length of Splines[splineIndex] in world space.

    Declaration
    public float CalculateLength(int splineIndex)
    Parameters
    Type Name Description
    int splineIndex

    The index of the spline to evaluate.

    Returns
    Type Description
    float

    The length of Splines[splineIndex] in world space

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)