Model:getMeshPartCount

Edit

Returns 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

NameTypeDescription
meshnumber The index of the mesh.

Returns

NameTypeDescription
partsnumber The number of parts in the mesh.

See also