Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetVertices

Set the vertices for the CanvasRenderer.
Read time 1 minuteLast updated 4 days ago

Definition

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

SetVertices(List<UIVertex>)

Set the vertices for the CanvasRenderer.
Warning
Deprecated. UI System now uses meshes.Generate a mesh and use 'SetMesh' instead
public void SetVertices(List<UIVertex> vertices)

Parameters

Array of vertices to set.

SetVertices(UIVertex[], int)

Set the vertices for the CanvasRenderer.
Warning
Deprecated. UI System now uses meshes.Generate a mesh and use 'SetMesh' instead
public void SetVertices(UIVertex[] vertices, int size)

Parameters

vertices

Array of vertices to set.

size

Number of vertices to set.