docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ToNativePathUnits

    ToNativePathUnits(float, PositionUnits)

    Get the path position to native path 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 ToNativePathUnits(float pos, CinemachinePathBase.PositionUnits units)
    Parameters
    Type Name Description
    float pos

    The value to convert from

    CinemachinePathBase.PositionUnits units

    The units in which pos is expressed

    Returns
    Type Description
    float

    The path position, in native 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)