# SetInspectorRotation(Transform, Vector3)

> Sets the rotation of a transform as it would be set by the Transform Inspector window.

## Definition

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

```csharp
public static void SetInspectorRotation(Transform t, Vector3 r)
```

### Parameters

**** (\[Transform]\(/engine/6000.7/script-reference/unityengine/transform)): Transform to set the rotation on.**** (\[Vector3]\(/engine/6000.7/script-reference/unityengine/vector3)): Rotation as it would be set by the Transform Inspector window.
