self:get_temperature

Client

Retrieves the color temperature of the directional light in Kelvin


Syntax

local kelvin = self:get_temperature()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatkelvinCurrent color temperature in Kelvin

Examples

Get temperature of a directional light
local entity = light.directional.create()

core.engine.print("info", "Directional light temperature:", entity:get_temperature())

On this page