# GvrXREventsSubscriber Class Reference

# GvrXREventsSubscriber

Handler for subscribing XR Unity actions to GVR Actions.

## Summary

### Inheritance

Inherits from: MonoBehaviour

| ### Properties ||
|---|---|
| `https://developers.google.com/vr/reference/unity/class/GvrXREventsSubscriber#classGvrXREventsSubscriber_1ae2512c6ff07da49adbc98b6d5ba259a1` | `static string` Gets the name of the loaded GVR device. |

## Properties

### loadedDeviceName

```c#
static string loadedDeviceName
```
Gets the name of the loaded GVR device.

This should be used in place of `XRSettings.loadedDeviceName`, which allocates small amounts of memory on every call.

When using 2018.3 and above, a cached copy of `XRSettings.loadedDeviceName` which updates whenever the `OnDeviceLoadAction` event triggers.

On 2018.2 and below, a one-time snapshot of the initial `XRSettings.loadedDeviceName` taken when this component is instantiated. If `loadedDeviceName` is expected to change during runtime in 2018.2 or earlier, use the setter to assign `XRSettings.loadedDeviceName` when this is expected to happen.

The name of the loaded GVR device.