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:
Issue: screenshots of GUI elements with rendertexture
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):
- ...