I’m trying to implement instant screen grabbing script for VR application and can’t overcome the problem of using new method: Graphics.CopyTexture.
Here are main code samples:
rt = new RenderTexture(widht, height, 24, RenderTextureFormat.ARGB32);
tex = new Texture2D(widht, height, TextureFormat.ARGB32, false);
Trying to copy texture:
cam.targetTexture = rt;
After launching that code I got an error saying:
Graphics.CopyTexture called with mismatching mip counts (src 1 dst 9)
What am I doing wrong?