# DeviceOrientation

> Describes physical orientation of the device as determined by the OS.

## Definition

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

```csharp
public enum DeviceOrientation
```

## Remarks

If device is physically situated between discrete positions, as when (for example) rotated diagonally, system will report Unknown orientation.

## Fields

| Value                                                                                                     | Description                                                                                                  |
| --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ |
| [FaceDown](/engine/6000.0/script-reference/unityengine/deviceorientation/facedown.md)                     | The device is held parallel to the ground with the screen facing downwards.                                  |
| [FaceUp](/engine/6000.0/script-reference/unityengine/deviceorientation/faceup.md)                         | The device is held parallel to the ground with the screen facing upwards.                                    |
| [LandscapeLeft](/engine/6000.0/script-reference/unityengine/deviceorientation/landscapeleft.md)           | The device is in landscape mode, with the device held upright and the home button on the right side.         |
| [LandscapeRight](/engine/6000.0/script-reference/unityengine/deviceorientation/landscaperight.md)         | The device is in landscape mode, with the device held upright and the home button on the left side.          |
| [Portrait](/engine/6000.0/script-reference/unityengine/deviceorientation/portrait.md)                     | The device is in portrait mode, with the device held upright and the home button at the bottom.              |
| [PortraitUpsideDown](/engine/6000.0/script-reference/unityengine/deviceorientation/portraitupsidedown.md) | The device is in portrait mode but upside down, with the device held upright and the home button at the top. |
| [Unknown](/engine/6000.0/script-reference/unityengine/deviceorientation/unknown.md)                       | The orientation of the device cannot be determined.                                                          |
