Phaser API Documentation

  Version: 
fromJSON(config)

Description:

Populates this Camera Manager based on the given configuration object, or an array of config objects.

See the Phaser.Types.Cameras.Scene2D.CameraConfig documentation for details of the object structure.

Parameters:

name type description
config Phaser.Types.Cameras.Scene2D.CameraConfig | Array.<Phaser.Types.Cameras.Scene2D.CameraConfig>

A Camera configuration object, or an array of them, to be added to this Camera Manager.

Returns:
Description:

This Camera Manager instance.

Since: 3.0.0