docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetLength

    GetLength()

    Return the sum of all curve lengths, accounting for Closed state. Note that this value is not accounting for transform hierarchy. If you require length in world space use

    Declaration
    public float GetLength()
    Returns
    Type Description
    float

    Returns the sum length of all curves composing this spline, accounting for closed state.

    Implements
    ISpline.GetLength()
    Remarks

    This value is cached. It is recommended to call this once in a non-performance critical path to ensure that the cache is valid.

    See Also
    Warmup()
    GetCurveLength(int)
    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)