Phaser API Documentation

  Version: 
width: number

Description:

The displayed width of this Game Object.

Setting this value will adjust the way in which this Nine Slice object scales horizontally, if configured to do so.

The minimum width this Game Object can be is the total of leftWidth + rightWidth. If you need to display this object at a smaller size, you can also scale it.

Type:
number
Since: 3.60.0