docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method StandardizePathDistance

    StandardizePathDistance(float)

    Standardize a distance along the path based on the path length. If the distance cache is not valid, then calling this will trigger a potentially costly regeneration of the path distance cache

    Declaration
    public float StandardizePathDistance(float distance)
    Parameters
    Type Name Description
    float distance

    The distance to standardize

    Returns
    Type Description
    float

    The standardized distance, ranging from 0 to path length

    In This Article
    Back to top
    Copyright © 2023 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)