Log inGet started
Package

debug.toolbox

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

debug.set

Show or hide a debug-visualization overlay category.

debug.set(category, enabled?)
  • category — a category name (bounds, frustum, bones, colliders, icons, wireframe), or "all" for every category.
  • enabled — true (default) to show the category, false to hide it.

Returns { [category] = boolean }, the category state after the change (every category when "all" is passed). Errors on an unknown category name, listing the known ones.

The overlay is ambient editor tooling drawn for the whole scene; this only flips which categories draw. bounds, bones, colliders, and wireframe are off by default (heavier per-mesh overlays); frustum and icons are on.