Skip to content

ecsia-monorepo / devtools/src / watchWorld

Function: watchWorld()

ts
function watchWorld(world, opts): WorldWatcher;

Defined in: devtools/src/watch.ts:34

Watch world for per-frame deltas. Registers add/remove/change observers across the world's registered components and samples aliveCount + archetype count at each tick(). The returned watcher's dispose() removes all observers.

Parameters

ParameterType
worldWorld
optsWatchOptions

Returns

WorldWatcher

MIT licensed · 0.x, unpublished, experimental.