How to capture to a render texture a full camera stack ?

Hello,

I’m using camera stacking feature with one base camera dedicated to the game itself and one overlay camera to the UI. The first camera renders all layers except the UI layer and the second camera renders the UI layer only. At some point I’m trying to capture the full-screen to a render texture and I thought using the base camera but the UI does not appears. I want the combination of the two cameras, is that possible ?

Thanks.

Hello,

I tried to render each camera, base and overlay, to a RenderTexture and then a Texture2D. I was surprised to discover that the overlay camera output the same thing as the base camera. So even when trying to access to the overlaycamera which renders the UI I can’t get the UI. What should I do ?

Thanks

Same problem here, I need the overlay camera to render a World Space UI on top of everything but on the render texture I only see the content of the base camera

Solved it thanks to this thread