From c9efa21cfdb6b8ec3b7ec1ca5f2cc56b958fb8d5 Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Wed, 1 Aug 2018 18:28:06 +0100 Subject: [PATCH] Added getChildren to keep inline with Group --- src/gameobjects/DisplayList.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/gameobjects/DisplayList.js b/src/gameobjects/DisplayList.js index f6fa9204a..5b380f707 100644 --- a/src/gameobjects/DisplayList.js +++ b/src/gameobjects/DisplayList.js @@ -176,6 +176,19 @@ var DisplayList = new Class({ return gameObjects[gameObjects.length - 1]; }, + /** + * All members of the group. + * + * @method Phaser.GameObjects.DisplayList#getChildren + * @since 3.12.0 + * + * @return {Phaser.GameObjects.GameObject[]} The group members. + */ + getChildren: function () + { + return this.list; + }, + /** * The Scene that owns this plugin is shutting down. * We need to kill and reset all internal properties as well as stop listening to Scene events.