GetDevicesWithRole(InputDeviceRole, List<InputDevice>)
Gets a list of active input devices available to the XR Input Subsystem that match the specified role.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine.XR
- Assembly: UnityEngine.XRModule
public static void GetDevicesWithRole(InputDeviceRole role, List<InputDevice> inputDevices)
Parameters
InputDeviceRole that is defined for the devices returned.
A List of type InputDevices to receive the available input devices.