Group#remove()

remove(child, destroy, silent) → {boolean}

Removes the given child from this group.

This will dispatch an onRemovedFromGroup event from the child (if it has one), and optionally destroy the child.

If the group cursor was referring to the removed child it is updated to refer to the next child.

Parameters
Name Type Argument Default Description
child any

The child to remove.

destroy boolean <optional>
false

If true destroy will be invoked on the removed child.

silent boolean <optional>
false

If true the the child will not dispatch the onRemovedFromGroup event.

Returns
boolean -

true if the child was removed from this group, otherwise false.

Source code: core/Group.js (Line 2431)
doc_phaser
2017-02-14 10:51:38
Comments
Leave a Comment

Please login to continue.