# MoveToView

> Transforms all selected object to the scene SceneView.pivot.

## Definition

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

## MoveToView()

Transforms all selected object to the scene [SceneView.pivot](/engine/6000.7/script-reference/unityeditor/sceneview/pivot.md).

```csharp
public void MoveToView()
```

### Remarks

If no argument is passed, each selected object is moved to the [SceneView.pivot](/engine/6000.7/script-reference/unityeditor/sceneview/pivot.md) point, keeping their relative spacing.

## MoveToView(Transform)

Transforms all selected object to the scene [SceneView.pivot](/engine/6000.7/script-reference/unityeditor/sceneview/pivot.md).

```csharp
public void MoveToView(Transform target)
```

### Parameters

**** (\[Transform]\(/engine/6000.7/script-reference/unityengine/transform)): A transform to place at the scene [SceneView.pivot](/engine/6000.7/script-reference/unityeditor/sceneview/pivot.md).

### Remarks

If no argument is passed, each selected object is moved to the [SceneView.pivot](/engine/6000.7/script-reference/unityeditor/sceneview/pivot.md) point, keeping their relative spacing.
