useViewsDisabled
useViewsDisabled():
boolean
Whether the engine leaves out the views that load a model or draw the
world, the ground, the light, a body and a model: headless, or where the
environment sets GAME_ENGINE_VIEWS=off. A jsdom test of a whole game
sets it: jsdom has no WebGL, and the packed engine’s views are no module
a test can mock. The screen, the game’s own DOM and every trait still
mount. What a view reads to draw nothing there.
Returns
Section titled “Returns”boolean