Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

XRSettings.eyeTextureDesc

public static RenderTextureDescriptor eyeTextureDesc;

Description

Fetch the eye texture RenderTextureDescriptor from the active stereo device.

If XR is enabled, this returns a RenderTexureDescriptor configured by the stereo device. This greatly simplifies the process of generating temporary render textures for stereo rendering.

Additional resources: ScriptableRenderContext.