LanguageEnglish
  • C#
  • JS

Script language

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

This version of Unity is unsupported.

BillboardAsset.GetVertices

Switch to Manual
public Vector2[] GetVertices();
public void GetVertices(List<Vector2> vertices);

Parameters

verticesThe list that receives the array.

Description

Get the vertices of the billboard mesh.

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.

See Also: BillboardAsset, SetVertices.