Home
News
Learn
Download
Examples
Community
Login
Phaser API Documentation
Version:
Namespaces
Classes
Events
Game Objects
Physics
Scenes
Changelog
Member of:
Phaser.Cameras.Scene2D.Camera
setScene(scene)
Description:
Sets the Scene the Camera is bound to.
Parameters:
name
type
description
scene
Phaser.Scene
The Scene the camera is bound to.
Returns:
Description:
This Camera instance.
Type:
Phaser.Cameras.Scene2D.Camera
Inherited from:
Phaser.Cameras.Scene2D.BaseCamera#setScene
Since:
3.0.0
Source:
src/cameras/2d/BaseCamera.js
(Line
1263
)
Possible examples