Phaser API Documentation

<nullable> parent: any


The parent object of the Canvas. Often a div, or the browser window, or nothing in non-browser environments.

This is set in the Game Config as the parent property. If undefined (or just not present), it will default to use the document body. If specifically set to null Phaser will ignore all parent operations.

Since: 3.16.0