Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetSubMesh(int)

Get information about a sub-mesh of the Mesh.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public SubMeshDescriptor GetSubMesh(int index)

Parameters

index

Sub-mesh index. See Mesh.subMeshCount. Out of range indices throw an exception.

Returns

Type

Description

SubMeshDescriptorSub-mesh data.

Remarks