Scope: static
Static functions
Static functions
- Alpha
- AlphaSingle
- BlendMode
- ComputedSize
- Crop
- Depth
- Flip
- GetBounds
- Mask
- Origin
- PathFollower
- Pipeline
- PostPipeline
- ScrollFactor
- Size
- Texture
- TextureCrop
- Tint
- Transform
- Visible
Static functions
ToJSON
<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 | optional | description |
---|---|---|---|
gameObject | No | The Game Object to export as JSON. |
Returns: Phaser.Types.GameObjects.JSONGameObject - A JSON representation of the Game Object.
Source: src/gameobjects/components/ToJSON.js#L7
Since: 3.0.0