Phaser API Documentation

  Version: 
runWordWrap(text)

Description:

Greedy wrapping algorithm that will wrap words as the line grows longer than its horizontal bounds.

Parameters:

name type description
text string

The text to perform word wrap detection against.

Returns:
Description:

The text after wrapping has been applied.

Type:
  • string
Since: 3.0.0