Model
self:is_component_visible
Shared
Retrieves whether a specific component of the model is currently visible
Syntax
local result = self:is_component_visible(component)Parameters
| Type | Name | Description |
|---|---|---|
string | component | Path of the component to check |
Returns
| Type | Name | Description |
|---|---|---|
bool | result | true if the component is visible, false otherwise |
Examples
local entity = model.create("character")
engine.print("info", "Hat visible:", entity:is_component_visible("Skeleton3D/Hat"))