Phaser API Documentation

  Version: 

Member of: Phaser.Structs.Size

setHeight(height)

Description:

Sets the height of this Size component.

Depending on the aspect mode, changing the height may also update the width and aspect ratio.

Parameters:

name type description
height number

The new height of the Size component.

Returns:
Description:

This Size component instance.

Since: 3.16.0
Source: src/structs/Size.js (Line 580)