文档

Unity Engine

Unity Engine

GetDevicesWithRole(InputDeviceRole, List<InputDevice>)

Gets a list of active input devices available to the XR Input Subsystem that match the specified role.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine.XR
  • Assembly: UnityEngine.XRModule
警告
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.