Phaser API Documentation

  Version: 
appendText(value, [addCR])

Description:

Appends the given text to the content already being displayed by this Text object.

An array of strings will be joined with \n line breaks.

Parameters:

name type arguments Default description
value string | Array.<string>

The string, or array of strings, to be appended to the existing content of this Text object.

addCR boolean <optional> true

Insert a carriage-return before the string value.

Returns:
Description:

This Text object.

Since: 3.60.0