What it does
material.setMetallic sets Metallic on a material object. It takes id and v.
Signature
material.setMetallic(id, v)Arguments
idv
Example · generated
function start() { material.createStandard('standard'); material.setMetallic('standard', 0.5);}material.createStandard is there to give the call something to act on; material.setMetallic is the line that matters. The code sits in start(), which the engine calls once, when the entity spawns.