BBMOD_Model.set_material

A function defined in BBMOD_Model.gml

set_material(_name, _material)

Description

Sets a material.

Arguments

Name Type Description
_name String The name of the material slot.
_material Struct.BBMOD_IMaterial, Pointer.Texture Either a material struct or just a texture if you don't wish to use BBMOD's material system.

Returns

Struct.BBMOD_Model Returns self.

Throws

See also

BBMOD_Model.MaterialNames, BBMOD_Model.Materials, BBMOD_Model.get_material

Do you find this page helpful?

Copyright © 2024, BlueBurn. Built on April 26, 2024 using GMDoc.