Model
self:is_visible_in_tree
SharedChecks whether the model 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
| Type | Name | Description |
|---|---|---|
bool | result | true if visible in the tree, false otherwise |
Examples
core.model.load("character", "models/character.glb")
local entity = core.model.create("character")
core.engine.print("info", "Model visible in tree:", entity:is_visible_in_tree())