Phaser API Documentation

  Version: 
<nullable> parent: any

Description:

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.

Type:
any
Since: 3.16.0