self:is_visible_in_tree

Client

Checks whether the point 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 point light is visible in the scene tree, false otherwise

Examples

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

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

On this page