Phaser API Documentation



The data object that is populated during rendering, then passed to the displayCallback. You should modify this object then return it back from the callback. It's updated values will be used to render the specific glyph.

Please note that if you need a reference to this object locally in your game code then you should shallow copy it, as it's updated and re-used for every glyph in the text.