Home
News
Learn
Download
Examples
Community
Plugins
Phaser API Documentation
Version:
Namespaces
Classes
Events
Game Objects
Physics
Scenes
Changelog
Member of:
Phaser.GameObjects.Text
toJSON()
Description:
Build a JSON representation of the Text object.
Returns:
Description:
A JSON representation of the Text object.
Type:
Phaser.Types.GameObjects.JSONGameObject
Overrides:
Phaser.GameObjects.GameObject#toJSON
Since:
3.0.0
Source:
src/gameobjects/text/Text.js
(Line
1335
)
Possible examples