Button#fixedToCamera

fixedToCamera : boolean A Game Object that is "fixed" to the camera uses its x/y coordinates as offsets from the top left of the camera during rendering. The values are adjusted at the rendering stage, overriding the Game Objects actual world position. The end result is that the Game Object will appear to be 'fixed' to the camera, regardless of where in the game worldthe camera is viewing. This is useful if for example this Game Object is a UI item that you wish to be visible at all timesrega

Button#exists

exists : boolean Controls if this Sprite is processed by the core Phaser game loops and Group loops. Inherited From PIXI.Sprite#exists Default Value true Source code: pixi/display/Sprite.js (Line 103)

Button#events

events : Phaser.Events All Phaser Game Objects have an Events class which contains all of the events that are dispatched when certain things happen to thisGame Object, or any of its components. Inherited From Phaser.Component.Core#events Source code: gameobjects/components/Core.js (Line 185) See Phaser.Events

Button#destroyPhase

[readonly] destroyPhase : boolean As a Game Object runs through its destroy method this flag is set to true,and can be checked in any sub-systems or plugins it is being destroyed from. Inherited From Phaser.Component.Destroy#destroyPhase Source code: gameobjects/components/Destroy.js (Line 22)

Button#destroy()

destroy(destroyChildren, destroyTexture) Destroys the Game Object. This removes it from its parent group, destroys the input, event and animation handlers if presentand nulls its reference to game, freeing it up for garbage collection. If this Game Object has the Events component it will also dispatch the onDestroy event. You can optionally also destroy the BaseTexture this Game Object is using. Be careful if you'vemore than one Game Object sharing the same BaseTexture. Parameters Name Type

Button#debug

debug : boolean A debug flag designed for use with Game.enableStep. Inherited From Phaser.Component.Core#debug Source code: gameobjects/components/Core.js (Line 218)

Button#data

data : Object An empty Object that belongs to this Game Object.This value isn't ever used internally by Phaser, but may be used by your own code, orby Phaser Plugins, to store data that needs to be associated with the Game Object,without polluting the Game Object directly. Inherited From Phaser.Component.Core#data Default Value {} Source code: gameobjects/components/Core.js (Line 160)

Button#cropRect

cropRect : Phaser.Rectangle The Rectangle used to crop the texture this Game Object uses.Set this property via crop.If you modify this property directly you must call updateCrop in order to have the change take effect. Inherited From Phaser.Component.Crop#cropRect Source code: gameobjects/components/Crop.js (Line 24)

Button#crop()

crop(rect, copy) Crop allows you to crop the texture being used to display this Game Object.Setting a crop rectangle modifies the core texture frame. The Game Object width and height properties will be adjusted accordingly. Cropping takes place from the top-left and can be modified in real-time either by providing an updated rectangle object to this method,or by modifying cropRect property directly and then calling updateCrop. The rectangle object given to this method can be either a Phaser.R

Button#contains()

contains(child) → {Boolean} Determines whether the specified display object is a child of the DisplayObjectContainer instance or the instance itself. Parameters Name Type Description child DisplayObject - Returns Boolean - Inherited From PIXI.DisplayObjectContainer#contains Source code: pixi/display/DisplayObjectContainer.js (Line 449)