文档

Unity Engine

Unity Engine

virtualRealitySupported

Enable Virtual Reality support on the current build target.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor
警告
Deprecated. This API is obsolete, and should no longer be used. Please use XRManagerSettings in the XR Management package instead.
public static bool virtualRealitySupported { get; set; }

Remarks

When enabled, the Virtual Reality module is used if possible. This causes a reload of graphics resources. Extra VR specific dependencies are included in platform builds supporting VR.