DisplayObjectContainer#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

Source code: pixi/display/DisplayObjectContainer.js (Line 132)
doc_phaser
2017-02-14 10:44:56
Comments
Leave a Comment

Please login to continue.