FlexGrid#createCustomLayer()

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)
doc_phaser
2017-02-14 10:46:01
Comments
Leave a Comment

Please login to continue.