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