文档

Unity Engine

Unity Engine

TryGetInputDevices(List<InputDevice>)

Gets a list of all connected InputDevice s reported by this XRInputSubsystem.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine.XR
  • Assembly: UnityEngine.XRModule
public bool TryGetInputDevices(List<InputDevice> devices)

Parameters

The list of devices reported by this subsystem.

Returns

Type

Description

boolTrue, if the XRInputSubsystem retrieves any devices. Returns false otherwise.