Home
News
Learn
Download
Examples
Community
Login
Phaser API Documentation
Version:
Namespaces
Classes
Events
Game Objects
Physics
Scenes
Changelog
Member of:
Phaser.Cameras.Scene2D.BaseCamera
centerToSize()
Description:
Moves the Camera so that it is re-centered based on its viewport size.
Returns:
Description:
This Camera instance.
Type:
Phaser.Cameras.Scene2D.BaseCamera
Since:
3.0.0
Source:
src/cameras/2d/BaseCamera.js
(Line
699
)
Possible examples