destroy(destroyChildren, soft)
Destroys this group.
Removes all children, then removes this group from its parent and nulls references.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
destroyChildren | boolean | <optional> | true | If true |
soft | boolean | <optional> | false | A 'soft destroy' (set to true) doesn't remove this group from its parent or null the game reference. Set to false and it does. |
- Inherited From
- Source code: core/Group.js (Line 2611)
Please login to continue.