[CASE IN-69616] Overlay Canvas & UI Toolkit objects in the prefab preview.

After migration from 2022.3.17f1 to 2022.3.20f1 (with HDRP) I noticed that my prefab previews are broken. The preview window contains UI objects that are present within the scene.

This is how it looks by default:

This is how it looks after resizing the preview area (notice that it stopped rendering in the scene view):

I’ve already submitted this as a bug report (CASE IN-69616). It is reproducible immediately in a fresh new project.

Does anyone have any workaround for that? How does that sneak past the testing? Why it was introduced in LTS?

I am not entirely sure if it’s related to the HDRP only, but it seems like an editor issue at a first glance.

The bug report just was confirmed by Unity. I am amazed at how it ended up in the release.

The issuetracker page is live now: Unity Issue Tracker - Canvas elements are rendered in the Prefab preview window when Prefab is selected