This version of Unity is unsupported.

Mesh.MeshDataArray.Length

Switch to Manual
public int Length;

Description

Number of Mesh data elements in the MeshDataArray.

See Also: Index operator, MeshData.