Phaser API Documentation

  Version: 
setFixedSize(width, height)

Description:

Set a fixed width and height for the text.

Pass in 0 for either of these parameters to disable fixed width or height respectively.

Parameters:

name type description
width number

The fixed width to set.

height number

The fixed height to set.

Returns:
Description:

The parent Text object.

Since: 3.0.0