Vital.sandbox
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

TypeNameDescription
stringcomponentPath of the component to check

Returns

TypeNameDescription
boolresulttrue if the component is visible, false otherwise

Examples

Check whether a specific component is currently visible
local entity = model.create("character")

engine.print("info", "Hat visible:", entity:is_component_visible("Skeleton3D/Hat"))

On this page