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
| Type | Name | Description |
|---|---|---|
string | bool | result | Path of the active projector texture, false if none is applied |
Examples
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