self:get_global_scale

Client

Retrieves the global world-space scale of the directional light


Syntax

local scale = self:get_global_scale()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
vector3scaleCurrent global scale as {x, y, z}

Examples

Get the global scale of a directional light
local entity = light.directional.create()

core.engine.print("info", "Directional light scale:", util.table.unpack(entity:get_global_scale()))

On this page