Model
self:is_component_rendered
SharedChecks whether a component of the model is rendered
Syntax
local result = self:is_component_rendered(
component
)Parameters
| Type | Name | Description |
|---|---|---|
string | component | Component path to check, as returned by self:get_components |
Returns
| Type | Name | Description |
|---|---|---|
bool | result | true if the component is rendered, false otherwise |
Examples
core.model.load("character", "models/character.glb")
local entity = core.model.create("character")
core.engine.print("info", "Rendered:", entity:is_component_rendered("Skeleton3D/Hat"))