文档

Unity Engine

Unity Engine

Vertex

Represents a vertex of geometry for drawing content of VisualElement.
阅读时间1 分钟最后更新于 1 个月前

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.