Phaser API Documentation

  Version: 
height: number

Description:

The displayed height of this Game Object.

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

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

If this is a 3-slice object, you can only stretch it horizontally and changing the height will be ignored.

Type:
number
Since: 3.60.0