Struct Vertex
Represents a vertex of geometry for drawing content of VisualElement.
Namespace: UnityEngine.UIElements
Syntax
public struct Vertex
Fields
nearZ
A special value representing the near clipping plane. Always use this value as the vertex position's z component when building 2D (flat) UI geometry.
Declaration
public static readonly float nearZ
Field Value
Type | Description |
---|---|
Single |
position
Describes the vertex's position.
Declaration
public Vector3 position
Field Value
Type | Description |
---|---|
Vector3 |
Remarks
Note this value is a
tint
A color value for the vertex.
Declaration
public Color32 tint
Field Value
Type | Description |
---|---|
Color32 |
Remarks
This value is multiplied by any other color information of the VisualElement (e.g. texture). Use
uv
The UV coordinate of the vertex.
Declaration
public Vector2 uv
Field Value
Type | Description |
---|---|
Vector2 |
Remarks
This is used to sample the required region of the associated texture if any. Values outside the uvRegion are currently not supported and could lead to undefined results.