Model

self:is_component_rendered

Shared

Checks whether a component of the model is rendered

Syntax

local result = self:is_component_rendered(
    component
)

Parameters

TypeNameDescription
stringcomponentComponent path to check, as returned by self:get_components

Returns

TypeNameDescription
boolresulttrue if the component is rendered, false otherwise

Examples

Check whether a component is rendered
core.model.load("character", "models/character.glb")

local entity = core.model.create("character")

core.engine.print("info", "Rendered:", entity:is_component_rendered("Skeleton3D/Hat"))

On this page