Phaser API Documentation

  Version: 
setCamera(camera)

Description:

Binds this Key Control to a camera.

Parameters:

name type description
camera Phaser.Cameras.Scene2D.Camera

The camera to bind this Key Control to.

Returns:
Description:

This Key Control instance.

Examples:
Since: 3.0.0