文档

Unity Engine

Unity Engine

GetNormals(NativeArray<Vector3>)

Populates an array with the vertex normals from the MeshData.
阅读时间1 分钟最后更新于 1 个月前

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.