文档

Unity Engine

Unity Engine

deviceConnected

Defines the delegate to use to register events when an InputDevice is connected.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Event
  • Namespace: UnityEngine.XR
  • Assembly: UnityEngine.XRModule
public static event Action<InputDevice> deviceConnected

Remarks

This delegate allows you to receive device connection events, so you know when the list of devices changes.