Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit8d45df8664

README.md

debug.state

Report the current debug-visualization state.

debug.state()

Returns:

{
  categories  = { [name] = boolean },  -- which categories draw
  scope       = { ids },               -- focused entity ids (empty = all)
  count       = number,                -- #scope
  playSession = boolean,               -- play-mode overlay session on?
  mode        = string,                -- engine mode ("edit" / "play")
}

A read-only snapshot of what debug.set, debug.scope, and debug.playSession have configured — the state the ambient overlay draws from this frame.