private void FixedUpdate() { U_Bool.BoolTrueMethord(byGameArea, ref quanpingFlag, () => { string fileNmae = saveFile + saveName + U_ScreenCapture.count + saveFormat; U_ScreenCapture.Capture_Game(fileNmae, muti); byGameArea = false; }); U_Bool.BoolTrueMethord(byRect, ref quyuFlag, () => { string fileNmae = saveFile + saveName + U_ScreenCapture.count + saveFormat; StartCoroutine(U_ScreenCapture.Capture_Rect(fileNmae, tarRect)); byRect = false; }); U_Bool.BoolTrueMethord(byUI, ref uiFlag, () => { Init_TarUI(); string fileNmae = saveFile + saveName + U_ScreenCapture.count + saveFormat; StartCoroutine(U_ScreenCapture.Capture_RectTransform(fileNmae, tarRectTran)); byUI = false; }); U_Bool.BoolTrueMethord(byCamera, ref cameraFlag, () => { Init_TarCamera(); SetCameraCaptureSize(); string fileNmae = saveFile + saveName + U_ScreenCapture.count + saveFormat; StartCoroutine(U_ScreenCapture.Capture_Camera(fileNmae, tarCamera, tarSize)); byCamera = false; }); }
public void Jietu() { Debug.Log(Screen.currentResolution.height); StartCoroutine(U_ScreenCapture.Capture_Camera(U_Path.testPicture, Camera.main, U_Screen.GetPixelSize())); }