# Camera Zone 2D

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

```
component camera.CameraZone2D
```

While Target is inside Area, Camera gets Priority and the zone's zoom and bounds.

## Fields

| Name | Script name | Type | Default | Description |
|---|---|---|---|---|
| Target | `Target` | `NodeRef` | `none` | Node that triggers the zone. Empty uses the follow target of the zone's camera. |
| Camera | `Camera` | `NodeRef` | `none` | Virtual camera the zone activates. Empty uses the one on this node. |
| Priority | `Priority` | `int` | `10` | Priority of the camera while the target is inside. |
| Zoom | `Zoom` | `float` | `0` | Zoom while the zone is in effect. 0 keeps the camera's zoom. |
| Use Bounds | `UseBounds` | `bool` | `false` | Replaces the camera's bounds while the zone is in effect. |
| Bounds | `Bounds` | `Rect` | `(0, 0, 0, 0)` | World rectangle used instead of the camera's bounds. |
| Area | `Area` | `Rect` | `(-4, -3, 8, 6)` | Trigger rectangle in this node's space. |
