# GetInspectorRotation(Transform)

> Returns the rotation of a transform as it is shown in the Transform Inspector window.

## Definition

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

```csharp
public static Vector3 GetInspectorRotation(Transform t)
```

### Parameters

**** (\[Transform]\(/engine/6000.6/script-reference/unityengine/transform)): Transform to get the rotation from.

### Returns

| Type                                                              | Description                                                |
| ----------------------------------------------------------------- | ---------------------------------------------------------- |
| [Vector3](/engine/6000.6/script-reference/unityengine/vector3.md) | Rotation as it is shown in the Transform Inspector window. |
