Model:getMeshPartCount
EditReturns the number of parts in a mesh. Meshes can be split into multiple "parts". Each part refers to a subset of the mesh's vertices, and parts can have their own draw mode and material.
parts = Model:getMeshPartCount(mesh)Arguments
| Name | Type | Description |
| mesh | number | The index of the mesh. |
Returns
| Name | Type | Description |
| parts | number | The number of parts in the mesh. |