Phaser API Documentation

  Version: 
<static> TopRight(gameObject, alignIn, [offsetX], [offsetY])

Description:

Takes given Game Object and aligns it so that it is positioned in the top right of the other.

Parameters:

name type arguments description
gameObject Phaser.GameObjects.GameObject

The Game Object that will be positioned.

alignIn Phaser.GameObjects.GameObject

The Game Object to base the alignment position on.

offsetX number <optional>

Optional horizontal offset from the position.

offsetY number <optional>

Optional vertical offset from the position.

Returns:
Description:

The Game Object that was aligned.

Examples:
Since: 3.0.0