Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


deviceDisconnected

Defines the delegate to use to register events when an InputDevice is disconnected.
Read time 1 minuteLast updated 4 days ago

Definition

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

Remarks

This delegate allows you to receive device disconnection events, so you know when the list of devices changes.
Note: IsValid will be false for the passed-in device, and the only device data available will be InputDevice.name, InputDevice.role, and comparison against other InputDevice objects.