Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


virtualRealitySupported

Enable Virtual Reality support on the current build target.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEditor
  • Assembly: UnityEditor
Warning
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.