Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Vertex

Represents a vertex of geometry for drawing content of VisualElement.
Read time 1 minuteLast updated 5 days ago

Definition

public struct Vertex

Fields

Value

Description

positionDescribes the vertex's position.
tintA color value for the vertex.
uvThe UV coordinate of the vertex.

Static Fields

Value

Description

nearZA special value representing the near clipping plane. Always use this value as the vertex position's z component when building 2D (flat) UI geometry.

Static Methods

Method

Description

BarycentricInterpolateInterpolates between three vertices using barycentric weights, returning the vertex at that point. Convenience overload that returns the result instead of writing to an out parameter.
LerpInterpolates between two vertices, returning a new vertex a fraction
t
of the way from
a
to
b
. Convenience overload that returns the result instead of writing to an out parameter — handy when the value is temporary.