<!-- Page: https://rustic-game-engine.pages.dev/docs/api/camera -->

# Current camera

Select the active game camera by path or entity ID.

[Feature status and language/platform compatibility](https://rustic-game-engine.pages.dev/markdown/reference/compatibility.md)

Choose an API to see its signature, parameters, examples and behavior.

## APIs

- [Game.setCurrentCamera()](https://rustic-game-engine.pages.dev/markdown/api/camera/set-current-camera.md)

## Module guide

## When to call it

Call when gameplay changes viewpoints—vehicles, players, cutscenes, or returning to the main camera. Do not call every frame when unchanged.

## Variables

| Variable | Type | Required | Description |
| --- | --- | --- | --- |
| `source` | string or camera reference | Yes | Stable camera entity ID or scene path. |

## Return and timing

No camera object. Lua selects immediately in the Play world; JavaScript/Web defer the selection until callback completion or a synchronous query flush, including canonical scene-target resolution. External SDK commands commit at callback completion or query flush. Rendering observes the resulting active camera.

## Constraints and behavior

- The target must resolve to a camera in the play snapshot.
- Every gameplay language calls the engine-owned API. Rustic supplies SDKs and dispatches callbacks; scripts do not parse requests or serialize responses. See the language guide for complete setup and callback registration.
