self:get_area

Client

Retrieves the dimensions of the area light's rectangular emitting surface


Syntax

local size = self:get_area()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
vector2sizeCurrent area dimensions as {width, height}

Examples

Get the dimensions of an area light
local entity = light.area.create()

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

On this page