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

    Class Shape

    A generic filled shape.

    Inheritance
    System.Object
    Filled
    Shape
    Inherited Members
    Filled.Fill
    Filled.FillTransform
    Filled.PathProps
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Unity.VectorGraphics
    Syntax
    public class Shape : Filled, IDrawable

    Properties

    Contours

    All the contours defining the shape.

    Declaration
    public BezierContour[] Contours { get; set; }
    Property Value
    Type Description
    BezierContour[]
    Remarks

    Some of these coutours may be holes in the shape, depending on the fill mode used FillMode.

    IsConvex

    Whether the specified contours are convex or not

    Declaration
    public bool IsConvex { get; set; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    Set this to true when you know the shape contours are convex. This will allow for a faster tessellation process in some circumstances.

    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