# SetCamera

> Set the current camera so all Handles and Gizmos are draw with its settings.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.7/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

## SetCamera(Camera)

Set the current camera so all Handles and Gizmos are draw with its settings.

```csharp
public static void SetCamera(Camera camera)
```

### Parameters

**** (\[Camera]\(/engine/6000.7/script-reference/unityengine/camera)):&#x20;

### Remarks

Sets [Camera.current](/engine/6000.7/script-reference/unityengine/camera/current.md) to be `camera` and sets its pixelRect.. This does not draw the camera, only sets it to be "active". To draw it use [Handles.DrawCamera](/engine/6000.7/script-reference/unityeditor/handles/drawcamera.md).

## SetCamera(Rect, Camera)

Set the current camera so all Handles and Gizmos are draw with its settings.

```csharp
public static void SetCamera(Rect position, Camera camera)
```

### Parameters

**** (\[Rect]\(/engine/6000.7/script-reference/unityengine/rect)): **** (\[Camera]\(/engine/6000.7/script-reference/unityengine/camera)):&#x20;

### Remarks

Sets [Camera.current](/engine/6000.7/script-reference/unityengine/camera/current.md) to be `camera` and sets its pixelRect.. This does not draw the camera, only sets it to be "active". To draw it use [Handles.DrawCamera](/engine/6000.7/script-reference/unityeditor/handles/drawcamera.md).
