set teh screen rect of camera unity
Code Example - set teh screen rect of camera unity
cam.rect = new Rect(0,0,1,1);
cam.rect = new Rect(0,0,1,1);