Phaser API Documentation

  Version: 
Filter
This is a beta release of our new docs system. Found an issue?
Please tell us about it in the #📖-newdocs-feedback channel on the Phaser Discord
Namespace: Components
Phaser.GameObjects.Components

Classes

Namespace

Methods

<static> ToJSON(gameObject)
Focus
Focus

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.

Examples:
Since: 3.0.0
Focus
Focus