ModelData:getMaterialName

Edit

Returns the name of a material in the model.

name = ModelData:getMaterialName(index)

Arguments

NameTypeDescription
indexnumber The index of a material.

Returns

NameTypeDescription
namestring The name of the material, or nil if the material does not have a name.

See also