docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method FromPathNativeUnits

    FromPathNativeUnits(float, PositionUnits)

    Convert a path position from native path units to the desired units. If the distance cache is not valid, then calling this will trigger a potentially costly regeneration of the path distance cache

    Declaration
    public float FromPathNativeUnits(float pos, CinemachinePathBase.PositionUnits units)
    Parameters
    Type Name Description
    float pos

    The value to convert from, in native units

    CinemachinePathBase.PositionUnits units

    The units to convert to

    Returns
    Type Description
    float

    Tha path position, in the requested units

    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)