文档

Unity Engine

Download Unity

Unity Engine

loadedDeviceName

Type of XR device that is currently loaded.
阅读时间1 分钟最后更新于 2 个月前

Definition

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

Remarks

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