Phaser API Documentation

  Version: 
setText(value)

Description:

Set the text to display.

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

Parameters:

name type description
value string | Array.<string>

The string, or array of strings, to be set as the content of this Text object.

Returns:
Description:

This Text object.

Since: 3.0.0