Phaser API Documentation

  Version: 
setScene(scene, [isSceneCamera])

Description:

Sets the Scene the Camera is bound to.

Parameters:

name type arguments Default description
scene Phaser.Scene

The Scene the camera is bound to.

isSceneCamera boolean <optional> true

Is this Camera being used for a Scene (true) or a Texture? (false)

Returns:
Description:

This Camera instance.

Since: 3.0.0