docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateRoundedSquare

    CreateRoundedSquare(float, float)

    Create a Spline in a square shape with rounding at the edges.

    Declaration
    public static Spline CreateRoundedSquare(float radius, float rounding)
    Parameters
    Type Name Description
    float radius

    The distance from center to outermost edge.

    float rounding

    The amount of rounding to apply to corners.

    Returns
    Type Description
    Spline

    A new Spline.

    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)