Model

self:is_component_wireframe

Client

Checks whether the debug wireframe of a component on the model is enabled

Syntax

local result = self:is_component_wireframe(
    component
)

Parameters

TypeNameDescription
stringcomponentPath of the component to check

Returns

TypeNameDescription
boolresulttrue if the debug wireframe is enabled, false otherwise

Examples

Check the debug wireframe of a component
core.model.load("character", "models/character.glb")

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

core.engine.print("info", "Wireframe:", entity:is_component_wireframe("Skeleton3D/Body"))

On this page