Class XRGraphics
XRGraphics insulates SRP from API changes across platforms, Editor versions, and as XR transitions into XR SDK
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
[Serializable]
public class XRGraphics
Properties
| Name | Description |
|---|---|
| enabled | SRP should use this to safely determine whether XR is enabled at runtime. |
| eyeTextureDesc | Eye texture descriptor. |
| eyeTextureHeight | Eye texture height. |
| eyeTextureResolutionScale | Eye texture resolution scale. |
| eyeTextureWidth | Eye texture width. |
| isDeviceActive | Returns true if the XR device is active. |
| loadedDeviceName | Name of the loaded XR device. |
| renderViewportScale | Render viewport scale. |
| stereoRenderingMode | Stereo rendering mode. |
| supportedDevices | List of supported XR devices. |
| tryEnable | Try enable. |