Class VectorUtils.Geometry
Holds the tessellated Scene geometry and associated data.
Inherited Members
Namespace: Unity.VectorGraphics
Assembly: Unity.VectorGraphics.dll
Syntax
public class VectorUtils.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 |
---|---|
ushort[] |
SettingIndex
The setting index of the geometry.
Declaration
public int SettingIndex
Field Value
Type | Description |
---|---|
int |
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.
UVs
The UV coordinates of the geometry.
Declaration
public Vector2[] UVs
Field Value
Type | Description |
---|---|
Vector2[] |
UnclippedBounds
The unclipped bounds of the geometry.
Declaration
public Rect UnclippedBounds
Field Value
Type | Description |
---|---|
Rect |
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 |