Point Light

self:set_bake_mode

Client

Sets the bake mode of the point light

Syntax

local status = self:set_bake_mode(
    mode
)

Parameters

TypeNameDescription
light.point.bake_modemodeBake mode to apply

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

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

entity:set_bake_mode(light.point.bake_mode.STATIC)

On this page