self:get_size

Client

Retrieves the soft shadow size of the spot light, which controls the apparent source radius for soft shadows


Syntax

local size = self:get_size()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
floatsizeCurrent soft shadow size

Examples

Get the soft shadow size of a spot light
local entity = light.spot.create()

core.engine.print("info", "Spot light size:", entity:get_size())

On this page