GetNormals(NativeArray<Vector3>)
Populates an array with the vertex normals from the MeshData.
Read time 1 minuteLast updated 8 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public void GetNormals(NativeArray<Vector3> outNormals)
Parameters
The destination vertex normals array.
Remarks
The destination array must have at least vertexCount elements. The normal at each index corresponds to the vertex with the same index. Vertex normal data will be converted into Vector3 format if needed. Additional Resources: Mesh.GetNormals, HasVertexAttribute, Mesh.AcquireReadOnlyMeshData.