docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetSubdivisionCount

    GetSubdivisionCount(float, int)

    Gets the number of subdivisions for a spline length and resolution.

    Declaration
    public static int GetSubdivisionCount(float length, int resolution)
    Parameters
    Type Name Description
    float length

    The length of the spline to consider.

    int resolution

    The resolution to consider. Higher resolutions result in more precise representations. However, higher resolutions have higher performance requirements.

    Returns
    Type Description
    int

    The number of subdivisions as calculated for given length and resolution.

    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)