# virtualRealitySupported

> Enable Virtual Reality support on the current build target.

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

> **Warning:**
>
> **Deprecated.** This API is obsolete, and should no longer be used. Please use XRManagerSettings in the XR Management package instead.

```csharp
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.
