Skip to main content

material

render · 1 property · Rendering

The material this node and everything under it draw with, unless a renderable names its own. A shape's, sprite's, mesh's or tile map's own material is that node's alone; this is the one that inherits. Goes on any node, one that draws nothing included.

In a scene, material is the node key that applies it. A script reaches each property below as a field on node.material: reading one asks the running component, and assigning one leaves the rest alone. The whole table is node.material.get() and node.material.set(table).

Properties

propertytypedefaultdescription
sourceasset · materialThe material asset; empty takes the parent's

Asset types this component references: material.