Class VectorUtils.Geometry | Vector Graphics | 1.0.0-preview.34
docs.unity3d.com
    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
    In This Article
    • Fields
      • Color
      • Fill
      • FillTransform
      • Indices
      • SettingIndex
      • UnclippedBounds
      • UVs
      • Vertices
      • WorldTransform
    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