What it does
material.setAlbedoColor sets AlbedoColor on a material object. It takes id, r, g and b.
Signature
material.setAlbedoColor(id, r, g, b)Arguments
idrgb
Example · generated
function start() { material.createStandard('standard'); material.setAlbedoColor('standard', 1, 0.8, 0.4);}material.createStandard is there to give the call something to act on; material.setAlbedoColor is the line that matters. The code sits in start(), which the engine calls once, when the entity spawns.