self:get_projector

Client

Retrieves the path of the currently active projector texture on the area light


Syntax

local result = self:get_projector()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
string | boolresultPath of the active projector texture, false if none is applied

Examples

Retrieve the active projector texture
local entity = light.area.create()
local projector = entity:get_projector()

if projector then
    core.engine.print("info", "Area light projector:", projector)
else
    core.engine.print("info", "No projector is applied")
end

On this page