BitmapText#maxWidth

maxWidth : number

The maximum display width of this BitmapText in pixels.

If BitmapText.text is longer than maxWidth then the lines will be automatically wrapped
based on the last whitespace character found in the line.

If no whitespace was found then no wrapping will take place and consequently the maxWidth value will not be honored.

Disable maxWidth by setting the value to 0. The maximum width of this BitmapText in pixels.

Source code: gameobjects/BitmapText.js (Line 648)
doc_phaser
2017-02-14 10:37:43
Comments
Leave a Comment

Please login to continue.