Phaser API Documentation

  Version: 

Member of: Phaser.Types.Core

DOMContainerConfig
Properties:
name type arguments Default description
createContainer boolean <optional> false

Should the game create a div element to act as a DOM Container? Only enable if you're using DOM Element objects. You must provide a parent object if you use this feature.

behindCanvas boolean <optional> false

Should the DOM Container that is created (if dom.createContainer is true) be positioned behind (true) or over the top (false, the default) of the game canvas?

Type:
object
Since: 3.12.0