Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

MeshRenderer.subMeshStartIndex

Switch to Manual
public int subMeshStartIndex;

Description

Index of the first sub-mesh to use from the Mesh associated with this MeshRenderer (Read Only).

This value is 0 except when using Mesh.CombineMeshes or static batching.

Did you find this page useful? Please give it a rating: