Hi guys,
I β have this simple code that take screenshot and render it to texture2D .
RenderTexture rt = new RenderTexture(w, 128, 24);
rt.antiAliasing = 8;
screenShotCamera.targetTexture = rt;
DestroyImmediate(screenShot);
screenShot = new Texture2D(128, 128, TextureFormat.ARGB32, false);
screenShotCamera.Render();
RenderTexture.active = rt;
screenShot.ReadPixels(new Rect((w-128)/2, 0, 128, 128), 0, 0);
screenShotCamera.targetTexture = null;
RenderTexture.active = null; // JC: added to avoid errors
screenShot.Apply();
this code work fine on Windows, but on OS X I get a texture completely white .
Any Ideas?
Thanks