self:get_bake_mode

Client

Retrieves the bake mode of the spot light


Syntax

local mode = self:get_bake_mode()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
intmodeCurrent bake mode enum value

Examples

Get bake mode of a spot light
local entity = light.spot.create()

core.engine.print("info", "Bake Mode:", entity:get_bake_mode())

On this page