self:get_scale

Client

Retrieves the local scale of the area light


Syntax

local scale = self:get_scale()

Parameters

No parameters are accepted by this function

Returns

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

Examples

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

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

On this page