# GetDeviceAtXRNode(XRNode)

> Gets the input device at a given XRNode endpoint.

## Definition

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

```csharp
public static InputDevice GetDeviceAtXRNode(XRNode node)
```

### Parameters

**** (\[XRNode]\(/engine/6000.0/script-reference/unityengine/xr/xrnode)): The XRNode that owns the requested device.

### Returns

| Type                                                                         | Description                                                                                             |
| ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
| [InputDevice](/engine/6000.0/script-reference/unityengine/xr/inputdevice.md) | An [InputDevice](/engine/6000.0/script-reference/unityengine/xr/inputdevice.md) at this \[\[XR.XRNode]. |

### Remarks

If there is no device at the specified endpoint, the method returns an InputDevice on which a call to InputDevice.IsValid returns false.
