# Virtual Camera 2D

> Aego 0.12.5 · development; docs build `4a32b816933e02930662f6a443cb25abe6050d090c55e237cbff5c44ae9b25f8`. [Build manifest](/docs-build.json).

```
component camera.VirtualCamera2D
```

A camera pose the brain can pick. The highest priority wins; switching blends from the current view.

## Fields

| Name | Script name | Type | Default | Description |
|---|---|---|---|---|
| Priority | `Priority` | `int` | `0` | The enabled virtual camera with the highest priority drives its output. |
| Output | `Output` | `string` | `""` | This camera drives. Empty is the main output; a Camera 2D picks another one with Camera Output Selector 2D. |
| Zoom | `Zoom` | `float` | `0` | Pixels per world unit while this camera is active. 0 keeps the zoom of the Camera 2D. |
| Blend Time | `BlendTime` | `float` | `0.5` | Seconds to blend into this camera when it becomes active. 0 cuts. |
| Blend Curve | `BlendCurve` | `Curve` | `curve` | Shape of the blend; its time range is stretched over Blend Time. |
| Time Domain | `TimeDomain` | `enum` | `unscaled` | unscaled blends and shakes in real time, also during hit-stop and pause; game follows the time scale. |
| Use Bounds | `UseBounds` | `bool` | `false` | Keeps the visible area inside Bounds. |
| Bounds | `Bounds` | `Rect` | `(0, 0, 0, 0)` | World rectangle the view stays inside. A smaller area centres the view on it. |
| Snap To Pixels | `SnapToPixels` | `bool` | `false` | Rounds the final position to whole screen pixels. pixelPerfect cameras already do this. |

## IsActive

```
func (VirtualCamera2D) IsActive() bool
```

Reports whether this virtual camera drives its output now.
