Debug
:An interface for debugging the game.
group
Debug
paused
: booleanPause the whole game.
inspect
: booleanDraw bounding boxes of all objects with area()
component, hover to inspect their states.
timeScale
: numberGlobal time scale.
showLog
: booleanShow the debug log or not.
fps
(): numberCurrent frames per second.
numFrames
(): numberTotal number of frames elapsed.
since
v3000.0
drawCalls
(): numberNumber of draw calls made last frame.
stepFrame
(): voidStep to the next frame. Useful with pausing.
clearLog
(): voidClear the debug log.
log
(msg: any): voidLog some text to on screen debug log.
error
(msg: any): voidLog an error message to on screen debug log.
curRecording
: Recording | nullThe recording handle if currently in recording mode.
since
v2000.1
numObjects
(): numberGet total number of objects.
since
v3001.0