ModelData:getMaterialCount

Returns the number of materials in the model.

count = ModelData:getMaterialCount()

Arguments

None

Returns

NameTypeDescription
countnumber The number of materials in the model.

See also