Model
core.model.set_wireframe_all
ClientShows 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_wireframeto toggle individually.
Parameters
| Type | Name | Description |
|---|---|---|
bool | state | Determines the wireframe visibility on all models: • When true - wireframes are shown on all models• When false - wireframes are hidden |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, false otherwise |
Examples
core.model.set_wireframe_all(true)