docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Shape

    A generic filled shape.

    Inheritance
    object
    Shape
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.VectorGraphics
    Assembly: Unity.VectorGraphics.dll
    Syntax
    public class Shape

    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.

    Fill

    The fill used on the shape.

    Declaration
    public IFill Fill { get; set; }
    Property Value
    Type Description
    IFill

    FillTransform

    A transformation specific to the fill.

    Declaration
    public Matrix2D FillTransform { get; set; }
    Property Value
    Type Description
    Matrix2D

    IsConvex

    Whether the specified contours are convex or not

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

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

    PathProps

    The path properties.

    Declaration
    public PathProperties PathProps { get; set; }
    Property Value
    Type Description
    PathProperties
    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)