self:is_shadow_enabled

Client

Checks whether shadow casting is enabled on the spot light


Syntax

local result = self:is_shadow_enabled()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolresulttrue if shadow casting is enabled, false otherwise

Examples

Check is shadow enabled on a spot light
local entity = light.spot.create()

core.engine.print("info", "Shadow Enabled:", entity:is_shadow_enabled())

On this page