Exemplo n.º 1
0
 void SetCameraCaptureSize(int width = 0, int height = 0)
 {
     if (width == 0 || height == 0)
     {
         tarSize = U_Screen.GetPixelSize();
     }
     else
     {
         tarSize = new Vector2(width, height);
     }
 }
Exemplo n.º 2
0
 public void Jietu()
 {
     Debug.Log(Screen.currentResolution.height);
     StartCoroutine(U_ScreenCapture.Capture_Camera(U_Path.testPicture, Camera.main, U_Screen.GetPixelSize()));
 }