Text#destroy()
  • References/Game Development/Phaser/Text/Text

destroy(destroyChildren) Destroy this Text object, removing it from the group it belongs to.

2025-01-10 15:47:30
Text#stroke
  • References/Game Development/Phaser/Text/Text

stroke : string A canvas fillstyle that will be used on the text stroke eg 'blue', '#FCFF00'.

2025-01-10 15:47:30
Text#tintedTexture
  • References/Game Development/Phaser/Text/Text

tintedTexture :Canvas A canvas that contains the tinted version of the Sprite (in Canvas mode, WebGL doesn't populate this)

2025-01-10 15:47:30
Text#tint
  • References/Game Development/Phaser/Text/Text

tint : number The tint applied to the sprite. This is a hex value. A value of 0xFFFFFF will remove any tint effect.

2025-01-10 15:47:30
Text#shadowColor
  • References/Game Development/Phaser/Text/Text

shadowColor : string The color of the shadow, as given in CSS rgba format. Set the alpha component to 0 to disable the shadow.

2025-01-10 15:47:30
Text#align
  • References/Game Development/Phaser/Text/Text

align : string Controls the horizontal alignment for multiline text.Can be: 'left', 'center' or 'right'.Does not affect

2025-01-10 15:47:30
Text#overlap()
  • References/Game Development/Phaser/Text/Text

overlap(displayObject) → {boolean} Checks to see if the bounds of this Game Object overlaps with

2025-01-10 15:47:30
Text#heal
  • References/Game Development/Phaser/Text/Text

heal Heal the Game Object. This adds the given amount of health to the health property. Inherited

2025-01-10 15:47:30
Text#offsetY
  • References/Game Development/Phaser/Text/Text

[readonly] offsetY : number The amount the Game Object is visually offset from its y coordinate

2025-01-10 15:47:30
Text#fontWeight
  • References/Game Development/Phaser/Text/Text

fontWeight : string The weight of the font: 'normal', 'bold', or

2025-01-10 15:47:30