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
The Layer object.
- Source code: core/FlexGrid.js (Line 104)
Please login to continue.