Creates a new Group Game Object and adds it to the Scene.
Note: This method will only be available if the Group Game Object has been built into Phaser.
name | type | arguments | description |
---|---|---|---|
children | Array.<Phaser.GameObjects.GameObject> | Phaser.Types.GameObjects.Group.GroupConfig | Array.<Phaser.Types.GameObjects.Group.GroupConfig> | <optional> |
Game Objects to add to this Group; or the |
config | Phaser.Types.GameObjects.Group.GroupConfig | Phaser.Types.GameObjects.Group.GroupCreateConfig | <optional> |
A Group Configuration object. |
The Game Object that was created.