文档

Unity Engine

Unity Engine

GetVertices(NativeArray<Vector3>)

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

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public void GetVertices(NativeArray<Vector3> outVertices)

Parameters

The destination vertex positions array.

Remarks

The destination array must have at least vertexCount elements. Unity will convert vertex position data into Vector3 format if needed. Additional Resources: Mesh.GetVertices, HasVertexAttribute, Mesh.AcquireReadOnlyMeshData.