Phaser API Documentation

  Version: 
TextWordWrap

Description:

A Text Word Wrap configuration object as used by the Text Style configuration.

Properties:
name type arguments Default description
width number <optional>

The width at which text should be considered for word-wrapping.

callback TextStyleWordWrapCallback <optional>

Provide a custom callback when word wrapping is enabled.

callbackScope any <optional>

The context in which the word wrap callback is invoked.

useAdvancedWrap boolean <optional> false

Use basic or advanced word wrapping?

Type:
object
Since: 3.0.0