# currentCamera

> Gets or sets the camera that is currently rendering.

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public Camera currentCamera { get; set; }
```

### Remarks

When set in the lifecycle of OnGUI, Handles.currentCamera determines where 3D handles are drawn. Handles.currentCamera only sets the currently rendering camera, it does not set up the viewport. It is best practice to use [Handles.SetCamera](/engine/6000.0/script-reference/unityeditor/handles/setcamera.md) and not set the camera directly.
