Creates the component.
Optionalconfig: CameraConfig
The component's configuration. Fields marked with DefineField take their values from
config, or its decorated fields keep their initial values.
OptionalactorThe actor that has this component. It is undefined until the component is
added to an actor.
Whether the camera is the current camera. Only one camera can be the current camera.
Size of the game window on the x axis, in pixels
Size of the game window on the y axis, in pixels
Zoom of the camera
Makes an actor a camera. The game shows the scene through the current camera.
See
Camera