# AlignWithView()

> Aligns the current selection with the position and rotation of the Scene view SceneView.camera.

## Definition

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

```csharp
public void AlignWithView()
```
