GvrXREventsSubscriber

Handler for subscribing XR Unity actions to GVR Actions.

Summary

Inheritance

Inherits from: MonoBehaviour

Properties

loadedDeviceName
static string
Gets the name of the loaded GVR device.

Properties

loadedDeviceName

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.