Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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
Warning
Deprecated. This API has been marked as deprecated and will be removed in future versions. Please use InputDevices.GetDevicesWithCharacteristics instead.
public static void GetDevicesWithRole(InputDeviceRole role, List<InputDevice> inputDevices)

Parameters

InputDeviceRole that is defined for the devices returned.

inputDevices

A List of type InputDevices to receive the available input devices.