文档

Unity Engine

Unity Engine

GetVertices

Get the vertices of the billboard mesh.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

GetVertices(List<Vector2>)

Get the vertices of the billboard mesh.
public void GetVertices(List<Vector2> vertices)

Parameters

The list that receives the array.

Remarks

Each vertex is a Vector2 in UV space. The second overload guarantees no memory allocation happening if the list capacity is big enough to hold the data.

GetVertices()

Get the vertices of the billboard mesh.
public Vector2[] GetVertices()

Returns

Type

Description

Vector2[]

Remarks

Each vertex is a Vector2 in UV space. The second overload guarantees no memory allocation happening if the list capacity is big enough to hold the data.