I'm using RenderTexture to take screenshots in my Unity game.
I have successfully managed to draw the Camera contents to the target RenderTexture and grab part of the RenderTexture's contents (i.e.: A Region Of Interest) using the code below:
RenderTexture coordinate system origin is bottom-left on iPad, but top-left on iPhone 5S
I have successfully managed to draw the Camera contents to the target RenderTexture and grab part of the RenderTexture's contents (i.e.: A Region Of Interest) using the code below:
Code (csharp):
- var renderTex =newRenderTexture((int)renderTexSize.x,(int)renderTexSize.y,24,RenderTextureFormat.ARGB32);...