Builtin Library
README.md
debug.playSession
Show or hide the debug overlay during play mode.
debug.playSession(enabled?)
enabled—true(default) to show the overlay in play,falseto hide it.
Returns { playSession = boolean }.
Edit mode always shows the overlay; play mode shows it only while this session is on — the way to watch bones, colliders, or bounds on a running, animating scene (bones only move once the scene is unpaused). The flag lives in memory only and is never saved, so debug visibility can never be permanently toggled on by accident; it resets on engine restart.