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
| Type | Name | Description |
|---|---|---|
bool | result | true if the directional light is visible in the scene tree, false otherwise |
Examples
local entity = light.directional.create()
core.engine.print("info", "Visible In Tree:", entity:is_visible_in_tree())