# GetTangents(NativeArray<Vector4>)

> Populates an array with the vertex tangents from the MeshData.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.5/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public void GetTangents(NativeArray<Vector4> outTangents)
```

### Parameters

**** (\[NativeArray\<Vector4>]\(/engine/6000.5/script-reference/unity/collections/nativearray1)): The destination vertex tangents array.

### Remarks

The destination array must have at least [vertexCount](/engine/6000.5/script-reference/unityengine/mesh/meshdata/vertexcount.md) elements. The tangent at each index corresponds to the vertex with the same index. Vertex tangent data will be converted into [Vector4](/engine/6000.5/script-reference/unityengine/vector4.md) format if needed. Additional Resources: [Mesh.GetTangents](/engine/6000.5/script-reference/unityengine/mesh/gettangents.md), [HasVertexAttribute](/engine/6000.5/script-reference/unityengine/mesh/meshdata/hasvertexattribute.md), [Mesh.AcquireReadOnlyMeshData](/engine/6000.5/script-reference/unityengine/mesh/acquirereadonlymeshdata.md).
