Text#lineSpacing
  • References/Game Development/Phaser/Text/Text

lineSpacing : number Additional spacing (in pixels) between each line of text if multi-line.

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

updateCrop() If you have set a crop rectangle on this Game Object via crop and since modified the cropRect

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

setTextBounds(x, y, width, height)

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

removeChildren(beginIndex, endIndex) Removes all children from this container that are within the begin and end indexes.

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

damage Damages the Game Object. This removes the given amount of health from the health property. If health is taken below or is equal to zero

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

key : string | Phaser.RenderTexture |

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

shadowStroke : boolean Sets if the drop shadow is applied to the Text stroke. Source

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

shadowOffsetY : number The shadowOffsetY value in pixels. This is how far offset vertically the shadow effect will be.

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

fontVariant : string The variant the font: 'normal', 'small-caps' Source

2025-01-10 15:47:30
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