Text#height

height : number The height of the Text. Setting this will modify the scale to achieve the value requested. Source code: gameobjects/Text.js (Line 2264)

Text#health

health : number The Game Objects health value. This is a handy property for setting and manipulating health on a Game Object. It can be used in combination with the damage method or modified directly. Inherited From Phaser.Component.Health#health Default Value 1 Source code: gameobjects/components/Health.js (Line 26)

Text#heal

heal Heal the Game Object. This adds the given amount of health to the health property. Inherited From Phaser.Component.Health#heal Source code: gameobjects/components/Health.js (Line 90)

Text#getLocalBounds()

getLocalBounds() → {Rectangle} Retrieves the non-global local bounds of the Sprite as a rectangle. The calculation takes all visible children into consideration. Returns Rectangle - The rectangular bounding area Inherited From PIXI.Sprite#getLocalBounds Source code: pixi/display/Sprite.js (Line 315)

Text#getChildIndex()

getChildIndex(child) → {Number} Returns the index position of a child DisplayObject instance Parameters Name Type Description child DisplayObject The DisplayObject instance to identify Returns Number - The index position of the child display object to identify Inherited From PIXI.DisplayObjectContainer#getChildIndex Source code: pixi/display/DisplayObjectContainer.js (Line 112)

Text#getChildAt()

getChildAt(index) → {DisplayObject} Returns the child at the specified index Parameters Name Type Description index Number The index to get the child from Returns DisplayObject - The child at the given index, if any. Inherited From PIXI.DisplayObjectContainer#getChildAt Source code: pixi/display/DisplayObjectContainer.js (Line 153)

Text#getBounds()

getBounds(matrix) → {Phaser.Rectangle} Returns the bounds of the Text as a rectangle.The bounds calculation takes the worldTransform into account. Parameters Name Type Description matrix Phaser.Matrix The transformation matrix of the Text. Returns Phaser.Rectangle - The framing rectangle Source code: gameobjects/Text.js (Line 1631)

Text#game

game : Phaser.Game A reference to the currently running Game. Inherited From Phaser.Component.Core#game Source code: gameobjects/components/Core.js (Line 142)

Text#fresh

[readonly] fresh : boolean A Game Object is considered fresh if it has just been created or reset and is yet to receive a renderer transform update.This property is mostly used internally by the physics systems, but is exposed for the use of plugins. Inherited From Phaser.Component.Core#fresh Source code: gameobjects/components/Core.js (Line 248)

Text#frameName

frameName : string Gets or sets the current frame name of the texture being used to render this Game Object. To change the frame set frameName to the name of the new frame in the texture atlas you wish this Game Object to use,for example: player.frameName = "idle". If the frame name given doesn't exist it will revert to the first frame found in the texture and throw a console warning. If you are using a sprite sheet then you should use the frame property instead. If you wish to fully replace