ドキュメント

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.