Model:getMaterial

Returns a Material loaded from the Model.


material = Model:getMaterial(name)

Arguments

NameTypeDescription
namestring The name of the Material to return.

Returns

NameTypeDescription
materialMaterial The material.

material = Model:getMaterial(index)

Arguments

NameTypeDescription
indexnumber The index of the Material to return.

Returns

NameTypeDescription
materialMaterial The material.

See also