# XRSettings

> Global XR related settings.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine.XR](/engine/6000.3/script-reference/unityengine/xr.md)
* **Assembly:** UnityEngine.VRModule

```csharp
public static class XRSettings
```

## Static Properties

| Property                                                                                                              | Description                                                                                                                                                      |
| --------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [appliedRenderViewportScale](/engine/6000.3/script-reference/unityengine/xr/xrsettings/appliedrenderviewportscale.md) | Fetches how much of the allocated display texture is applied by the active stereo device at the current frame.                                                   |
| [deviceEyeTextureDimension](/engine/6000.3/script-reference/unityengine/xr/xrsettings/deviceeyetexturedimension.md)   | Fetch the device eye texture dimension from the active stereo device.                                                                                            |
| [enabled](/engine/6000.3/script-reference/unityengine/xr/xrsettings/enabled.md)                                       | Indicates whether Unity loaded and initialized the XR display subsystem.                                                                                         |
| [eyeTextureDesc](/engine/6000.3/script-reference/unityengine/xr/xrsettings/eyetexturedesc.md)                         | Fetch the eye texture RenderTextureDescriptor from the active stereo device.                                                                                     |
| [eyeTextureHeight](/engine/6000.3/script-reference/unityengine/xr/xrsettings/eyetextureheight.md)                     | The current height of an eye texture for the loaded device.                                                                                                      |
| [eyeTextureResolutionScale](/engine/6000.3/script-reference/unityengine/xr/xrsettings/eyetextureresolutionscale.md)   | Controls the actual size of eye textures as a multiplier of the device's default resolution.                                                                     |
| [eyeTextureWidth](/engine/6000.3/script-reference/unityengine/xr/xrsettings/eyetexturewidth.md)                       | The current width of an eye texture for the loaded device.                                                                                                       |
| [gameViewRenderMode](/engine/6000.3/script-reference/unityengine/xr/xrsettings/gameviewrendermode.md)                 | Sets the render mode for the XR device. The render mode controls how the view of the XR device renders in the Game view and in the main window on a host PC.     |
| [isDeviceActive](/engine/6000.3/script-reference/unityengine/xr/xrsettings/isdeviceactive.md)                         | Read-only value that can be used to determine if the XR device is active.                                                                                        |
| [loadedDeviceName](/engine/6000.3/script-reference/unityengine/xr/xrsettings/loadeddevicename.md)                     | Type of XR device that is currently loaded.                                                                                                                      |
| [occlusionMaskScale](/engine/6000.3/script-reference/unityengine/xr/xrsettings/occlusionmaskscale.md)                 | A scale applied to the standard occulsion mask for each platform.                                                                                                |
| [renderViewportScale](/engine/6000.3/script-reference/unityengine/xr/xrsettings/renderviewportscale.md)               | Controls how much of the allocated eye texture should be used for rendering.                                                                                     |
| [showDeviceView](/engine/6000.3/script-reference/unityengine/xr/xrsettings/showdeviceview.md)                         | This property has been deprecated. Use [XRSettings.gameViewRenderMode](/engine/6000.3/script-reference/unityengine/xr/xrsettings/gameviewrendermode.md) instead. |
| [stereoRenderingMode](/engine/6000.3/script-reference/unityengine/xr/xrsettings/stereorenderingmode-1.md)             | The stereo rendering mode that is currently in use.                                                                                                              |
| [supportedDevices](/engine/6000.3/script-reference/unityengine/xr/xrsettings/supporteddevices.md)                     | Returns a list of supported XR devices that were included at build time.                                                                                         |
| [useOcclusionMesh](/engine/6000.3/script-reference/unityengine/xr/xrsettings/useocclusionmesh.md)                     | Specifies whether or not the occlusion mesh should be used when rendering. Enabled by default.                                                                   |

## Enums

| Enum                                                                                                               | Description                                                          |
| ------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------- |
| [XRSettings.StereoRenderingMode](/engine/6000.3/script-reference/unityengine/xr/xrsettings/stereorenderingmode.md) | Enum type signifying the different stereo rendering modes available. |
