Skip to content

Commit 5d280a6

Browse files
authored
Merge pull request phaserjs#2938 from samme/docs-group-exists
Clarify `group.exists`
2 parents ade48e6 + 864ce9e commit 5d280a6

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

v2-community/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
### Updates
1010

11+
* Clarification of `group.exists` behavior
1112
* Clarification of fixedToCamera semantics
1213
* change Emitter.gravity from number to Phaser.Point
1314
* Fixed issue causing tsc to crap out under certain circumstances

v2-community/src/core/Group.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Phaser.Group = function (game, parent, name, addToStage, enableBody, physicsBody
9393
this.alive = true;
9494

9595
/**
96-
* If exists is true the group is updated, otherwise it is skipped.
96+
* If exists is false the group will be excluded from collision checks and filters such as {@link forEachExists}. The group will not call `preUpdate` and `postUpdate` on its children and the children will not receive physics updates or camera/world boundary checks. The group will still be {@link #visible} and will still call `update` on its children.
9797
* @property {boolean} exists
9898
* @default
9999
*/

0 commit comments

Comments
 (0)