# attitude

> Returns the attitude (ie, orientation in space) of the device.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.InputLegacyModule

```csharp
public Quaternion attitude { get; }
```

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    // Rotate the object to match the device's orientation
    // in space.
    void Update()
    {
        transform.rotation = Input.gyro.attitude;
    }
}
```
