Model

core.model.set_wireframe_all

Client

Shows or hides the debug wireframe on all models, including ones created afterward

Syntax

local status = core.model.set_wireframe_all(
    state
)

The wireframe follows the mesh that is currently drawn.

  • Respects LOD — draws whatever is currently visible, full detail or a lower LOD.
  • Local only — a debug view on this client, never replicated to other peers.
  • Overrides components — every component of every model is set to state.
  • Per component — use self:set_component_wireframe to toggle individually.

Parameters

TypeNameDescription
boolstateDetermines the wireframe visibility on all models:
• When true - wireframes are shown on all models
• When false - wireframes are hidden

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Toggle debug wireframes globally
core.model.set_wireframe_all(true)

On this page