I take screenshot with RenderTexture like below :
int width = (int)(Screen.width * multiplyResolution);
int height = (int)(Screen.height * multiplyResolution);
RenderTexture rt = new RenderTexture(width, height, 32);
rt.antiAliasing = 1;
rt.filterMode = FilterMode.Bilinear;
rt.wrapMode = TextureWrapMode.Clamp;
Camera.main.targetTexture = rt;
Camera.main.Render();
RenderTexture.active = rt;
Texture2D texture = new Texture2D(width, height, TextureFormat.ARGB32, false);
texture.ReadPixels(new Rect(0, 0, width, height), 0, 0);
texture.Apply();
Camera.main.targetTexture = null;
RenderTexture.active = null;
Destroy(rt);
Then i take a portion of that texture (for ex: crop everything except top left of that texture)
Texture2D result = new Texture2D((int)rect.width, (int)rect.height);
result.SetPixels(texture.GetPixels(0, 0, 200, 200));
result.Apply();
After that i use GUI.DrawTexture to draw it on screen but the quatity is bad, it’s blurry. Why is it so blurry? please help