docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateSquare

    CreateSquare(float)

    Creates a Spline in the shape of a square with sharp corners.

    Declaration
    public static Spline CreateSquare(float size)
    Parameters
    Type Name Description
    float size

    The size of the square's edges.

    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)