Components

.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) → {Phaser.Types.GameObjects.JSONGameObject}

Since:
  • 3.0.0
构建给定游戏对象的JSON表示. 这通常由游戏对象特定的实现进一步扩展.
Parameters:
Name Type Description
gameObject Phaser.GameObjects.GameObject 要导出为JSON的游戏对象.
Returns:
游戏对象的JSON表示.
Type
Phaser.Types.GameObjects.JSONGameObject