Esempio n. 1
0
        IEnumerator CRSaveScreenshot()
        {
            yield return(new WaitForEndOfFrame());

            TwoStepScreenshotPath = Sharing.SaveScreenshot(TwoStepScreenshotName);

            NativeUI.Alert("Alert", "A new screenshot was saved at " + TwoStepScreenshotPath);
        }
Esempio n. 2
0
    IEnumerator SaveScreenshot()
    {
        // Wait until the end of frame
        yield return(new WaitForEndOfFrame());

        // The SaveScreenshot() method returns the path of the saved image
        // The provided file name will be added a ".png" extension automatically
        screenshotPath = Sharing.SaveScreenshot("screenshot");
    }
        IEnumerator CRSaveScreenshot()
        {
            yield return(new WaitForEndOfFrame());

            if (captureArea == ScreenshotCaptureOptions.WholeScreen)
            {
                filepath.Value = Sharing.SaveScreenshot(filename.Value);
            }
            else
            {
                filepath.Value = Sharing.SaveScreenshot(startX.Value, startY.Value, width.Value, height.Value, filename.Value);
            }

            captureCoroutine = null;
            Finish();
        }