Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

Issue: screenshots of GUI elements with rendertexture

$
0
0
I'm making a drawing / coloring app. I use uGui for stamp/sticker functionality.

I'm trying to use a rendertexture to make a screenshot. But the GUI elements don't show up on the render texture.

The GUI elements are on a Screen Space - Camera canvas which is rendered by my Main Camera. When I'm taking a screenshot I set the target texture of my camera to a rendertexture, take my screenshot, and reset. Everything shows up in the PNG except the GUI elements. This is my code:

Code (CSharp):
  1. ...
Issue: screenshots of GUI elements with rendertexture

Viewing all articles
Browse latest Browse all 23263

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>