GetVertices(NativeArray<Vector3>)
Populates an array with the vertex positions from the MeshData.
Read time 1 minuteLast updated 6 days ago
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.