instances_set_materials
Applies multiple materials in an array to an instance. This is used when the instance references geometry which provides material indicies to select the material from the array.
arguments
- "instance_names" : Array
An array of names of the instances on which to set the material attribute.
- "material_names" : Array
An array of the names of the materials to apply to the instance.
- "override" : Boolean (default: false)
If set to true and the instance has children its children will also inherit the material, whether or not they supply their own. If false then only children without their own material attribute will inherit.