Phaser API Documentation

  Version: 
setDisplayCallback(callback)

Description:

Set a callback that alters how each character of the Bitmap Text is rendered.

The callback receives a Phaser.Types.GameObjects.BitmapText.DisplayCallbackConfig object that contains information about the character that's about to be rendered.

It should return an object with x, y, scale and rotation properties that will be used instead of the usual values when rendering.

Parameters:

name type description
callback Phaser.Types.GameObjects.BitmapText.DisplayCallback

The display callback to set.

Returns:
Description:

This Game Object.