Skip to main content

building.set_light_cast_shadow

Overview

  • [Build Mode Only] Turns shadow casting on or off for a placed light object, through the build undo/redo stack. Enabling shadows on many lights is expensive at runtime. Requires phase == 'ready' (see build.get_mode_state).

Metadata

FieldValue
DisplaySet Light Cast Shadow
Categorybuilding
AccessScriptCheat
ScopeB1Standalone
TagsExperimental
Aliases—

Parameters

NameTypeRequiredDefaultDescription
entity_identityIdyes—Target light object entity ID (from build.scan_objects)
enableboolyes—true to cast shadows, false to disable

Usage

await inzoi.cli.execute('building.set_light_cast_shadow', {
entity_id: 0,
enable: false,
});