Documentation

Unity Engine

Unity Engine

loadedDeviceName

Type of XR device that is currently loaded.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Property
  • Namespace: UnityEngine.XR
  • Assembly: UnityEngine.VRModule
public static string loadedDeviceName { get; }

Remarks

Note: Rendering to the device may not be happening even though it is loaded. Refer to XRSettings.enabled.
In order to change the currently loaded device or reload the current device, use XRSettings.LoadDeviceByName.