glow.setMeshColor

Section: Glow / Highlight

What it does

glow.setMeshColor sets MeshColor on a glow object. It takes id, r, g and b.

Signature

glow.setMeshColor(id, r, g, b)

Arguments

  • id
  • r
  • g
  • b

Example · generated

function start() {  glow.setMeshColor('main', 1, 0.8, 0.4);}

glow.setMeshColor is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.

6 members in glow