Vertex
Represents a vertex of geometry for drawing content of VisualElement.
읽는 시간 1분최근 업데이트: 9시간 전
Definition
- Type: Struct
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public struct Vertex
Fields
Value | Description |
|---|---|
| position | Describes the vertex's position. |
| tint | A color value for the vertex. |
| uv | The UV coordinate of the vertex. |
Static Fields
Value | Description |
|---|---|
| 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. |
Static Methods
Method | Description |
|---|---|
| BarycentricInterpolate | Interpolates 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. |
| Lerp | Interpolates between two vertices, returning a new vertex a fraction |