Phaser API Documentation

  Version: 
<readonly> width: number

Description:

The native (un-scaled) width of this Game Object.

For a DOM Element this property is read-only.

The property displayWidth holds the computed bounds of this DOM Element, factoring in scaling.

Type:
number
Since: 3.17.0