Aego Playground

Camera 2Dtype

component engine.Camera2D

Renders an orthographic view from the node transform.

Activefield

field Active bool

Only active cameras render.

Clearfield

field Clear bool

Clears the viewport before drawing.

ClearColorfield

field ClearColor Color

Background color used when clear is on.

Maskfield

field Mask int

Visibility layers this camera renders. -1 renders every layer.

Orderfield

field Order int

Cameras with a lower order render first.

Scalefield

field Scale int

How the view adapts to the window: free, pixelPerfect or fitVirtual.

Viewportfield

field Viewport Rect

Part of the screen the camera draws into, in normalized coordinates.

Virtualfield

field Virtual Vec2

Virtual resolution used by fitVirtual and pixelPerfect.

Zoomfield

field Zoom float

Pixels per world unit. Larger values show a smaller part of the world.