- Home /
Question by
Mechlordx · Mar 20, 2015 at 01:39 AM ·
cameratexture2drendertexture
Rendertexture to texture2d in Unity5
I used this method in Unity4 and the texture2ds came out fine:
RenderTexture.active = screenshares[x];
screenshares2d[x].ReadPixels(new Rect(0, 0, screenshares2d[x].width, screenshares2d[x].height), 0, 0);
screenshares2d[x].Apply();
But after going to Unity5 the texture2ds turn out gibberish. Is there a newer way or old way to solve the same problem?
Comment
After trying a few other ways, it seems the common problem is ReadPixels is not doing its job.
Your answer
Follow this Question
Related Questions
Save image from camera with post processing. 0 Answers
Why is ReadPixels on my RenderTexture creating a pure gray texture? 1 Answer
How to save a RenderTexture to a png from a different camera? 1 Answer
How can I save the Bild from a Camera, which not main camera is. 1 Answer
Save rendertexture to image in file 2 Answers