createCustomLayer(width, height, children) → {Phaser.FlexLayer}
A custom layer is centered on the game and maintains its aspect ratio as it scales up and down.
Parameters
Name Type Argument Description width number Width of this layer in pixels. height number Height of this layer in pixels. children Array.<PIXI.DisplayObject> <optional> An array of children that are used to populate the FlexLayer.
Returns
Phaser.FlexLayer - The Layer object.
Source code: core/F