Phaser API Documentation

  Version: 
<static> ToJSON(gameObject)

Description:

Build a JSON representation of the given Game Object.

This is typically extended further by Game Object specific implementations.

Parameters:

name type description
gameObject Phaser.GameObjects.GameObject

The Game Object to export as JSON.

Returns:
Description:

A JSON representation of the Game Object.

Since: 3.0.0