New answers tagged

0

I think you might find the following function useful: public Texture2D getTexture2DFromRenderTexture(RenderTexture rTex) { Texture2D texture2D = new Texture2D(rTex.width, rTex.height); RenderTexture.active = rTex; texture2D.ReadPixels(new Rect(0, 0, rTex.width, rTex.height), 0, 0); texture2D.Apply(); return texture2D; } This would be ...



Top 50 recent answers are included