Phaser API Documentation

  Version: 
getCamera(name)

Description:

Gets a Camera based on its name.

Camera names are optional and don't have to be set, so this method is only of any use if you have given your Cameras unique names.

Parameters:

name type description
name string

The name of the Camera.

Returns:
Description:

The first Camera with a name matching the given string, otherwise null.

Since: 3.0.0