Skip to content

Commit 70437a0

Browse files
committed
Clean text automatically on creation.
1 parent 6a868cb commit 70437a0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/gameobjects/BitmapText.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ Phaser.BitmapText = function (game, x, y, font, text, size, align) {
145145
*/
146146
this._tint = 0xFFFFFF;
147147

148+
this._text = this.cleanText(text);
149+
148150
this.updateText();
149151

150152
/**

0 commit comments

Comments
 (0)