docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreatePolygon

    CreatePolygon(float, int)

    Creates a Spline in the shape of a polygon with a specific number of sides.

    Declaration
    public static Spline CreatePolygon(float edgeSize, int sides)
    Parameters
    Type Name Description
    float edgeSize

    The size of the polygon's edges.

    int sides

    The amount of sides the polygon has.

    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)