ドキュメント

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.