Stage#addChild()

addChild(child) → {DisplayObject} Adds a child to the container. Parameters Name Type Description child DisplayObject The DisplayObject to add to the container Returns DisplayObject - The child that was added. Inherited From PIXI.DisplayObjectContainer#addChild Source code: pixi/display/DisplayObjectContainer.js (Line 42)

Stage#addChildAt()

addChildAt(child, index) → {DisplayObject} Adds a child to the container at a specified index. If the index is out of bounds an error will be thrown Parameters Name Type Description child DisplayObject The child to add index Number The index to place the child in Returns DisplayObject - The child that was added. Inherited From PIXI.DisplayObjectContainer#addChildAt Source code: pixi/display/DisplayObjectContainer.js (Line 55)

Stage#backgroundColor

backgroundColor : number | string Gets and sets the background color of the stage. The color can be given as a number: 0xff0000 or a hex string: '#ff0000' Type number | string Source code: core/Stage.js (Line 366)

Stage#checkVisibility()

checkVisibility() Starts a page visibility event listener running, or window.onpagehide/onpageshow if not supported by the browser.Also listens for window.onblur and window.onfocus. Source code: core/Stage.js (Line 221)

Stage#children

[readonly] children : Array.<DisplayObject> [read-only] The array of children of this container. Type Array.<DisplayObject> Inherited From PIXI.DisplayObjectContainer#children Source code: pixi/display/DisplayObjectContainer.js (Line 17)

Stage#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)

Stage#currentRenderOrderID

currentRenderOrderID : number Reset each frame, keeps a count of the total number of objects updated. Source code: core/Stage.js (Line 65)

Stage#destroy()

destroy() Destroys the Stage and removes event listeners. Source code: core/Stage.js (Line 346)

Stage#disableVisibilityChange

disableVisibilityChange : boolean By default if the browser tab loses focus the game will pause.You can stop that behavior by setting this property to true.Note that the browser can still elect to pause your game if it wishes to do so,for example swapping to another browser tab. This will cause the RAF callback to halt,effectively pausing your game, even though no in-game pause event is triggered if you enable this property. Source code: core/Stage.js (Line 40)

Stage#exists

exists : boolean If exists is true the Stage and all children are updated, otherwise it is skipped. Default Value true Source code: core/Stage.js (Line 46)