Class ShapeExtensions | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class ShapeExtensions

    Inheritance
    System.Object
    ShapeExtensions
    Namespace: UnityEditor.U2D.Path
    Syntax
    public static class ShapeExtensions

    Methods

    IsSpline(Vector3[], Boolean)

    Declaration
    public static bool IsSpline(this Vector3[] points, bool isOpenEnded)
    Parameters
    Type Name Description
    Vector3[] points
    System.Boolean isOpenEnded
    Returns
    Type Description
    System.Boolean

    ToPolygon(Vector3[], Boolean)

    Declaration
    public static Polygon ToPolygon(this Vector3[] points, bool isOpenEnded)
    Parameters
    Type Name Description
    Vector3[] points
    System.Boolean isOpenEnded
    Returns
    Type Description
    Polygon

    ToSpline(Polygon)

    Declaration
    public static Spline ToSpline(this Polygon polygon)
    Parameters
    Type Name Description
    Polygon polygon
    Returns
    Type Description
    Spline

    ToSpline(Vector3[], Boolean)

    Declaration
    public static Spline ToSpline(this Vector3[] points, bool isOpenEnded)
    Parameters
    Type Name Description
    Vector3[] points
    System.Boolean isOpenEnded
    Returns
    Type Description
    Spline
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023