docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateStarPolygon

    CreateStarPolygon(float, int, float)

    Creates a Spline in in the shape of a star with a specified number of corners.

    Declaration
    public static Spline CreateStarPolygon(float edgeSize, int corners, float concavity)
    Parameters
    Type Name Description
    float edgeSize

    The distance between the corners of the star.

    int corners

    The amount of corners the star has.

    float concavity

    The sharpness of the corners. The range is 0 through 1.

    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)