InputDeviceCharacteristics
A set of bit flags describing InputDevice characteristics.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Enum
- Namespace: UnityEngine.XR
- Assembly: UnityEngine.XRModule
[Flags]public enum InputDeviceCharacteristics : uint
Remarks
The XR system combines the InputDeviceFlags members into the InputDevice.characteristics bitmask to describe the characteristics and capabilities of an input device. You can also pass a bitwise combination of flags from this enumeration to InputDevices.GetDevicesWithCharacteristics to get a list of devices with specific characteristics. For example, you could use the following to get the right-hand controller:
(InputDeviceCharacteristics.HeldInHand | InputDeviceCharacteristics.Right)Fields
Value | Description |
|---|---|
| Camera | The InputDevice has a camera and associated camera tracking information. |
| Controller | The InputDevice is a game controller. |
| EyeTracking | The InputDevice provides eye tracking information via an Eyes input feature. |
| HandTracking | The InputDevice provides hand tracking information via a Hand input feature. |
| HeadMounted | The InputDevice is attached to the head. |
| HeldInHand | The InputDevice is held in the user's hand. Typically, a tracked controller. |
| Left | The InputDevice is associated with the left side of the user. |
| None | A default value specifying no flags. |
| Right | The InputDevice is associated with the right side of the user. |
| Simulated6DOF | The InputDevice reports software approximated, positional data. |
| TrackedDevice | The InputDevice provides 3DOF or 6DOF tracking data. |
| TrackingReference | The InputDevice is an unmoving reference object used to locate and track other objects in the world. |