Adds a new Camera into the Camera Manager. The Camera Manager can support up to 31 different Cameras.
Each Camera has its own viewport, which controls the size of the Camera and its position within the canvas.
Camera.scrollY properties to change where the Camera is looking, or the
Camera methods such as
centerOn. Cameras also have built in special effects, such as fade, flash, shake,
pan and zoom.
By default Cameras are transparent and will render anything that they can see based on their
scrollY values. Game Objects can be set to be ignored by a Camera by using the
The Camera will have its
roundPixels property set to whatever
CameraManager.roundPixels is. You can change
it after creation if required.
See the Camera class documentation for more details.
The horizontal position of the Camera viewport.
The vertical position of the Camera viewport.
The width of the Camera viewport. If not given it'll be the game config size.
The height of the Camera viewport. If not given it'll be the game config size.
Set this Camera as being the 'main' camera. This just makes the property
The name of the Camera.
The newly created Camera.