Namespace: Components

Phaser.GameObjects. Components

Classes

TransformMatrix

Namespaces

Alpha
AlphaSingle
BlendMode
ComputedSize
Crop
Depth
Flip
GetBounds
Mask
Origin
PathFollower
Pipeline
ScrollFactor
Size
Texture
TextureCrop
Tint
Transform
Visible

Methods


<static> ToJSON(gameObject)

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.

Since: 3.0.0
Source: src/gameobjects/components/ToJSON.js (Line 7)
Returns:

A JSON representation of the Game Object.

Type
Phaser.Types.GameObjects.JSONGameObject