Question by
adikecapan · Aug 08, 2019 at 02:20 AM ·
pausescreenshotwebcamtexturewebcam
Priview The Screenshot for User
I want to ask about privew-ing the screenshot after it takes. in this case i want to pause the game and also the webCam devices, its possible to do ? or any other method to show the .jpg file in disk (application persistant data path) after saving ?
Thank you.
public IEnumerator ShareScreenshot()
{
isProcessing = true;
yield return new WaitForEndOfFrame();
string screenShotPath = Application.persistentDataPath + "/" + ScreenshotName;
ScreenCapture.CaptureScreenshot(ScreenshotName);
yield return new WaitForSeconds(0.01f);
//Pause The WEBCAM
Time.timeScale = 0f;
optionSave.SetActive(true);
isProcessing = false;
isCapture = false;
uiToInvisible.SetActive(true);
Debug.Log(ScreenshotName);
}
Comment