Phaser.GameObjects.Components
Scope: static
Static functions
Static functions
- Alpha
- AlphaSingle
- BlendMode
- ComputedSize
- Crop
- Depth
- ElapseTimer
- Filters
- Flip
- GetBounds
- Lighting
- Mask
- Origin
- PathFollower
- RenderNodes
- RenderSteps
- 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 | Phaser.GameObjects.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