Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetNormals(List<Vector3>)

Gets the vertex normals of the Mesh.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public void GetNormals(List<Vector3> normals)

Parameters

A list of vertex normals to populate.

Remarks

The normal at each index corresponds to the vertex with the same index.
Use this method instead of Mesh.normals if you control the life cycle of the list passed in and you want to avoid allocating a new array with every access.
Additional Resources: Mesh.AcquireReadOnlyMeshData function.