Namespace: Components

Phaser.GameObjects. Components

Classes

Animation
TransformMatrix

Members


<static> Alpha

Provides methods used for setting the alpha properties of a Game Object.
Should be applied as a mixin and not used directly.

Since: 3.0.0
Source: src/gameobjects/components/Alpha.js (Line 12)

<static> BlendMode

Provides methods used for setting the blend mode of a Game Object.
Should be applied as a mixin and not used directly.

Since: 3.0.0
Source: src/gameobjects/components/BlendMode.js (Line 9)

<static> ComputedSize

Provides methods used for calculating and setting the size of a non-Frame based Game Object.
Should be applied as a mixin and not used directly.

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

<static> Crop

Provides methods used for getting and setting the texture of a Game Object.

Since: 3.12.0
Source: src/gameobjects/components/Crop.js (Line 7)

<static> Depth

Provides methods used for setting the depth of a Game Object.
Should be applied as a mixin and not used directly.

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

<static> Flip

Provides methods used for visually flipping a Game Object.
Should be applied as a mixin and not used directly.

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

<static> GetBounds

Provides methods used for obtaining the bounds of a Game Object.
Should be applied as a mixin and not used directly.

Since: 3.0.0
Source: src/gameobjects/components/GetBounds.js (Line 11)

<static> Mask

Provides methods used for getting and setting the mask of a Game Object.

Since: 3.0.0
Source: src/gameobjects/components/Mask.js (Line 10)

<static> Origin

Provides methods used for getting and setting the origin of a Game Object.
Values are normalized, given in the range 0 to 1.
Display values contain the calculated pixel values.
Should be applied as a mixin and not used directly.

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

<static> Pipeline

Provides methods used for setting the WebGL rendering pipeline of a Game Object.

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

<static> ScaleMode

Provides methods used for getting and setting the scale of a Game Object.

Since: 3.0.0
Source: src/gameobjects/components/ScaleMode.js (Line 9)

<static> ScrollFactor

Provides methods used for getting and setting the Scroll Factor of a Game Object.

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

<static> Size

Provides methods used for getting and setting the size of a Game Object.

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

<static> Texture

Provides methods used for getting and setting the texture of a Game Object.

Since: 3.0.0
Source: src/gameobjects/components/Texture.js (Line 10)

<static> TextureCrop

Provides methods used for getting and setting the texture of a Game Object.

Since: 3.0.0
Source: src/gameobjects/components/TextureCrop.js (Line 10)

<static> Tint

Provides methods used for setting the tint of a Game Object.
Should be applied as a mixin and not used directly.

Since: 3.0.0
Source: src/gameobjects/components/Tint.js (Line 17)

<static> Transform

Provides methods used for getting and setting the position, scale and rotation of a Game Object.

Since: 3.0.0
Source: src/gameobjects/components/Transform.js (Line 15)

<static> Visible

Provides methods used for setting the visibility of a Game Object.
Should be applied as a mixin and not used directly.

Since: 3.0.0
Source: src/gameobjects/components/Visible.js (Line 10)

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 32)
Returns:

A JSON representation of the Game Object.

Type
JSONGameObject