Enum DeviceOrientation
Enum describing the physical orientation of a device as reported by DeviceOrientationSensor.
Namespace: UnityEngine.InputSystem
Assembly: Unity.InputSystem.dll
Syntax
public enum DeviceOrientation
Remarks
The values mirror the legacy UnityEngine.DeviceOrientation enum so that content migrating from
UnityEngine.Input.deviceOrientation to the Input System observes identical semantics. Note that this
is a package-local enum, kept independent of the legacy input module.
Fields
| Name | Description |
|---|---|
| FaceDown | The device is held parallel to the ground with the screen facing downwards. |
| FaceUp | The device is held parallel to the ground with the screen facing upwards. |
| LandscapeLeft | The device is in landscape mode, with the device held upright and the home button on the right side. |
| LandscapeRight | The device is in landscape mode, with the device held upright and the home button on the left side. |
| Portrait | The device is in portrait mode, with the device held upright and the home button at the bottom. |
| PortraitUpsideDown | The device is in portrait mode but upside down, with the device held upright and the home button at the top. |
| Unknown | The orientation of the device cannot be determined. |