GPU Particles

self:is_visible_in_tree

Client

Checks whether the particle emitter is visible in the current 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 visible in the tree, false otherwise

Examples

Check tree visibility of a particle emitter
local entity = particle.gpu.create()

core.engine.print("info", "Particle emitter visible in tree:", entity:is_visible_in_tree())

On this page