docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ConvertPathUnit

    ConvertPathUnit<TSplineType>(TSplineType, PathIndexUnit)

    Given a spline and a target PathIndex Unit, convert the SplineData to a new PathIndexUnit without changing the final positions on the Spline.

    Declaration
    public void ConvertPathUnit<TSplineType>(TSplineType spline, PathIndexUnit toUnit) where TSplineType : ISpline
    Parameters
    Type Name Description
    TSplineType spline

    The Spline to use for the conversion, this is necessary to compute most of PathIndexUnits.

    PathIndexUnit toUnit

    The unit to convert SplineData to.

    Type Parameters
    Name Description
    TSplineType

    The Spline type.

    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)