Format
typescript
Mesh.tangentsclass: Mesh
Description
An array of tangent vectors for the mesh.
Tangent vectors are vectors that are perpendicular to the surface normal of the mesh and aligned with the direction of the texture coordinates. They are used to calculate lighting and material details.
Parameters
| param_name | type | description |
|---|
Return
| type | description |
|---|---|
Vector4[] | An array of tangent vectors. |
Code Example
typescript
let mesh = Resources.Load<Mesh>(Mesh, "meshId");
mesh.tangents;