Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

BillboardAsset.GetIndices

Switch to Manual
public ushort[] GetIndices();
public void GetIndices(List<ushort> indices);

Parameters

indicesThe list that receives the array.

Description

Get the indices of the billboard mesh.

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.

See Also: BillboardAsset, SetIndices.

Did you find this page useful? Please give it a rating: