October 15, 2019 update:
  • The Daydream View VR headset is no longer available for purchase. However, developers can continue to use the existing Google VR SDK to update and distribute their apps to the Google Play Store, and make them available to users in the Daydream app.

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.