XRPass.GetViewport() Exceptions in Editor

,

The bug was recognized by Unity in this separate forum post .

@anon_47198093 : We can also check for “xr.enabled” in the if-clause:

if (data.m_RenderingData.cameraData.xrRendering && data.m_RenderingData.cameraData.xr.enabled && data.m_IsActiveTargetBackBuffer)
2 Likes