Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetSubMesh(int)

Gets data about a given sub-mesh in the MeshData.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public 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

Type

Description

SubMeshDescriptorReturns sub-mesh data.

Remarks