Skip to content

attachDevtools

attachDevtools(game, gameView?): Disposer

Defined in: packages/engine/src/stores/devtools.ts:1073

Binds the world step and dump act on, and the view describe looks through; the return unbinds them. The Frameloop attaches the browser’s game, and a test or an agent attaches a headless one, which has no view.

Parameter Type
game HeadlessGame
gameView? DevtoolsView

Disposer