docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ShapeExtensions

    Inheritance
    object
    ShapeExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.U2D.Path
    Assembly: Unity.2D.Path.Editor.dll
    Syntax
    public static class ShapeExtensions

    Methods

    IsSpline(Vector3[], bool)

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

    ToPolygon(Vector3[], bool)

    Declaration
    public static Polygon ToPolygon(this Vector3[] points, bool isOpenEnded)
    Parameters
    Type Name Description
    Vector3[] points
    bool 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[], bool)

    Declaration
    public static Spline ToSpline(this Vector3[] points, bool isOpenEnded)
    Parameters
    Type Name Description
    Vector3[] points
    bool isOpenEnded
    Returns
    Type Description
    Spline
    In This Article
    Back to top
    Copyright © 2025 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)