文档

Unity Engine

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.
阅读时间1 分钟最后更新于 1 个月前

Definition

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