Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetTangents(NativeArray<Vector4>)

Populates an array with the vertex tangents from the MeshData.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public void GetTangents(NativeArray<Vector4> outTangents)

Parameters

The destination vertex tangents array.

Remarks

The destination array must have at least vertexCount elements. The tangent at each index corresponds to the vertex with the same index. Vertex tangent data will be converted into Vector4 format if needed. Additional Resources: Mesh.GetTangents, HasVertexAttribute, Mesh.AcquireReadOnlyMeshData.