This version of Unity is unsupported.
Method group is Obsolete

InputDevice.role

Obsolete This API has been marked as deprecated and will be removed in future versions. Please use InputDevice.characteristics instead. public XR.InputDeviceRole role;

Description

Read Only. The InputDeviceRole of the device in the XR system. This is a platform provided description of how the device is used.