# AlignWithView()

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

## Definition

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

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