self:set_bake_mode

Client

Sets the bake mode of the area light


Syntax

local status = self:set_bake_mode(
    mode
)

Parameters

TypeNameDescription
intmodeBake mode enum value to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Apply bake mode on a area light
local entity = light.area.create()

entity:set_bake_mode(1)

On this page