Model:getMaterialName

Returns the name of one of the materials in the Model.

name = Model:getMaterialName(index)

Arguments

NameTypeDescription
indexnumberThe index of the material to get the name of.

Returns

NameTypeDescription
namestringThe name of the material.

See also