self:is_shadow_enabled

Client

Checks whether shadow casting is enabled on the directional 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 directional light
local entity = light.directional.create()

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

On this page