RenderDoc does not capture scene draw events

Hi,
on the project i’m currently working on I got issues when using RenderDoc.
I can click the camera button which launches RenderDoc and creates a snapshot of the currently active scene in Unity. Bot the only events I get are the events to draw the Unity UI (scene view, game view, inspector etc, including rendering the texture containing the current scene content) But I don’t get any events for rendering any GameObject or other scene content.

This only happens when playing the game scene in editor play mode (which would be most important to me to load into renderdoc). Other scenes like the main menu are not affected. Also on builds it works fine.

Does anyone have an idea what could have caused this?

Note: The project is not my own, so I cannot check which change could have caused this issue. It exists since I took over the project.

Unity 2021.3.10f1 (also with older versions)
Universal Renderpipeline, no custom postprocessing.

1 Like
  • So, a colleague and I ran into this today, where it would work fine on my PC, but not on theirs.
  • After basically resorting to magic, we discovered how to get a capture of the game window reliably: set RenderDoc to capture multiple frames at a time, then press “Capture Immediately”.
  • We found that 2 was enough to return the scene view, and then the game view.
    However, you might need to try multiple.
  • We discovered this by attaching to the Unity editor with RenderDoc, then clicking “Cycle Active Window” and “Capture Immediately” repeatedly in order a few times until we got a capture of the game.
  • We’d randomly get one or the other (or nothing), so figured it was a timing issue.
  • Using a list because I can’t get newlines to appear and it looks messy