# AlignViewToObject(Transform)

> Moves the Scene view to frame a transform.

## Definition

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

```csharp
public void AlignViewToObject(Transform t)
```

### Parameters

**** (\[Transform]\(/engine/6000.6/script-reference/unityengine/transform)): The transform to frame in the Scene view.

### Remarks

This sets the scene pivot, rotation, and [SceneView.size](/engine/6000.6/script-reference/unityeditor/sceneview/size.md) to look at a transform.
