GetVertices
Get the vertices of the billboard mesh.
Read time 1 minuteLast updated 8 days ago
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.
Additional Resources: BillboardAsset, BillboardAsset.SetVertices.
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.
Additional Resources: BillboardAsset, BillboardAsset.SetVertices.