Skip to content

Format

typescript
Mesh.tangents

class: 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_nametypedescription

Return

typedescription
Vector4[]An array of tangent vectors.

Code Example

typescript
let mesh = Resources.Load<Mesh>(Mesh, "meshId");
mesh.tangents;