Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


role

Read Only. The InputDeviceRole of the device in the XR system. This is a platform provided description of how the device is used.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine.XR
  • Assembly: UnityEngine.XRModule
Warning
Deprecated. This API has been marked as deprecated and will be removed in future versions. Please use InputDevice.characteristics instead.
public InputDeviceRole role { get; }