# role

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

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.XR](/engine/6000.0/script-reference/unityengine/xr.md)
* **Assembly:** UnityEngine.XRModule

> **Warning:**
>
> **Deprecated.** This API has been marked as deprecated and will be removed in future versions. Please use InputDevice.characteristics instead.

```csharp
public InputDeviceRole role { get; }
```
