This version of Unity is unsupported.

Mesh.MeshData.GetSubMesh

Switch to Manual
public Rendering.SubMeshDescriptor GetSubMesh(int index);

Parameters

index The index of the sub-mesh. See subMeshCount. If you specify an out of range index, Unity throws an exception.

Returns

SubMeshDescriptor Returns sub-mesh data.

Description

Gets data about a given sub-mesh in the MeshData.