Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


InputDeviceCharacteristics

A set of bit flags describing InputDevice characteristics.
Read time 1 minuteLast updated 5 days ago

Definition

[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

CameraThe InputDevice has a camera and associated camera tracking information.
ControllerThe InputDevice is a game controller.
EyeTrackingThe InputDevice provides eye tracking information via an Eyes input feature.
HandTrackingThe InputDevice provides hand tracking information via a Hand input feature.
HeadMountedThe InputDevice is attached to the head.
HeldInHandThe InputDevice is held in the user's hand. Typically, a tracked controller.
LeftThe InputDevice is associated with the left side of the user.
NoneA default value specifying no flags.
RightThe InputDevice is associated with the right side of the user.
Simulated6DOFThe InputDevice reports software approximated, positional data.
TrackedDeviceThe InputDevice provides 3DOF or 6DOF tracking data.
TrackingReferenceThe InputDevice is an unmoving reference object used to locate and track other objects in the world.