self:set_shadow_enabled

Client

Sets whether the area light casts shadows


Syntax

local status = self:set_shadow_enabled(
    state
)

Parameters

TypeNameDescription
boolstatetrue to enable shadow casting, false to disable

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Apply shadow enabled on a area light
local entity = light.area.create()

entity:set_shadow_enabled(true)

On this page