SpriteBatch#setChildIndex()

setChildIndex(child, index)

Changes the position of an existing child in the display object container

Parameters
Name Type Description
child DisplayObject

The child DisplayObject instance for which you want to change the index number

index Number

The resulting index number for the child display object

Inherited From
Source code: pixi/display/DisplayObjectContainer.js (Line 132)
doc_phaser
2017-02-14 11:12:29
Comments
Leave a Comment

Please login to continue.