文档

Unity Engine

Unity Engine

GetVertices(List<Vector3>)

Gets the vertex positions of the Mesh.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

Parameters

A list of vertex positions to populate.

Remarks

Use this method instead of Mesh.vertices 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.