Skip to reading
GDScript Programming & Godot

SetGlow()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Set Glow

Set an object's authored glow state explicitly.

Source table from SetGlow(), page 163
Option key / fieldMeaning and inputDefault
Entity entityIdChoose a scene entity ID.Blank
Enabled enabledExplicit on/off state for the feature or response.true
Variable variableText.Blank

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await SetGlow({"entityId": "archive_door", "enabled": true, "variable": ""})

In use. Enable the signal lamp once the circuit is powered. Use the object's glow setup and the room's bloom/glow settings together. Repeating Set Glow Enabled is safer than toggling when a trigger can fire repeatedly.

ToggleRGBString()#

Toggle Rgb String

Toggle an authored RGB light string, optionally writing its state to a variable.

Source table from SetGlow(), page 163
Option key / fieldMeaning and inputDefault
Entity entityIdChoose a scene entity ID.Blank
Variable variableText.Blank

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await ToggleRGBString({"entityId": "archive_door", "variable": ""})

In use. Turn decorative bulbs on after a celebration begins. The bulbs, spacing and light settings belong to the RGB string setup; this action does not create a new string from an ordinary mesh.

Page 163 of 378Permalink
Go to page