GetIndices
Get the indices of the billboard mesh.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
GetIndices(List<ushort>)
Get the indices of the billboard mesh.
public void GetIndices(List<ushort> indices)
Parameters
The list that receives the array.
Remarks
Billboard meshes are always made of triangles. Specify the index of each vertex (in the vertices array) for each triangle. The second overload guarantees no memory allocation happening if the list capacity is big enough to hold the data.
Additional Resources: BillboardAsset, BillboardAsset.SetIndices.
GetIndices()
Get the indices of the billboard mesh.
public ushort[] GetIndices()
Returns
Type | Description |
|---|---|
| ushort[] |
Remarks
Billboard meshes are always made of triangles. Specify the index of each vertex (in the vertices array) for each triangle. The second overload guarantees no memory allocation happening if the list capacity is big enough to hold the data.
Additional Resources: BillboardAsset, BillboardAsset.SetIndices.