docs.unity.cn
    Show / Hide Table of Contents

    Class VectorUtils.Geometry

    Holds the tessellated Scene geometry and associated data.

    Inheritance
    Object
    VectorUtils.Geometry
    Namespace: Unity.VectorGraphics
    Syntax
    public class Geometry

    Fields

    Color

    The color of the geometry.

    Declaration
    public Color Color
    Field Value
    Type Description
    Color

    Fill

    The fill of the geometry. May be null.

    Declaration
    public IFill Fill
    Field Value
    Type Description
    IFill

    FillTransform

    The filling transform of the geometry.

    Declaration
    public Matrix2D FillTransform
    Field Value
    Type Description
    Matrix2D

    Indices

    The triangle indices of the geometry.

    Declaration
    public ushort[] Indices
    Field Value
    Type Description
    UInt16[]

    SettingIndex

    The setting index of the geometry.

    Declaration
    public int SettingIndex
    Field Value
    Type Description
    Int32
    Remarks

    This is used to refer to the proper texture/gradient settings inside the texture atlas. This should be set to 0 for geometries without texture or gradients.

    UnclippedBounds

    The unclipped bounds of the geometry.

    Declaration
    public Rect UnclippedBounds
    Field Value
    Type Description
    Rect

    UVs

    The UV coordinates of the geometry.

    Declaration
    public Vector2[] UVs
    Field Value
    Type Description
    Vector2[]

    Vertices

    The vertices of the geometry.

    Declaration
    public Vector2[] Vertices
    Field Value
    Type Description
    Vector2[]

    WorldTransform

    The world transform of the geometry.

    Declaration
    public Matrix2D WorldTransform
    Field Value
    Type Description
    Matrix2D
    Back to top Copyright © 2023 Unity Technologies
    Generated by DocFX
    on Wednesday, April 19, 2023
    Terms of use