Phaser API Documentation

  Version: 
wordWrapWidth: number | null

Description:

The maximum width of a line of text in pixels. Null means no line wrapping. Setting this property directly will not re-run the word wrapping algorithm. To change the width and re-wrap, use Phaser.GameObjects.TextStyle#setWordWrapWidth.

Type:
number | null
Default: null
Since: 3.24.0