self:is_visible_in_tree

Client

Checks whether the directional light is effectively visible within the scene tree, accounting for parent visibility


Syntax

local result = self:is_visible_in_tree()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolresulttrue if the directional light is visible in the scene tree, false otherwise

Examples

Check scene-tree visibility of a directional light
local entity = light.directional.create()

core.engine.print("info", "Visible In Tree:", entity:is_visible_in_tree())

On this page