Exemple #1
0
    private IEnumerator CaptureScreenshotCoroutine(string filename)
    {
        yield return(new WaitForEndOfFrame());

        ScreenShoter.CaptureScreenShot(filename);
        this.changeButtonActiveness(true);
    }
Exemple #2
0
    private IEnumerator CaptureScreenshotCoroutine(string filename)
    {
        yield return(new WaitForEndOfFrame());

        ScreenShoter.CaptureScreenShot(filename);
        m_MeshButton.SetActive(true);
        m_CameraButton.SetActive(true);
    }
        public void ScreenShot(DeviceBasicInfo targetDevice)
        {
            FolderBrowserDialog fbd = new FolderBrowserDialog();

            if (fbd.ShowDialog() == DialogResult.OK)
            {
                var shoter = new ScreenShoter();
                shoter.Init(new ScreenShoterArgs()
                {
                    DevBasicInfo = targetDevice,
                    SavePath     = fbd.SelectedPath
                });
                shoter.RunAsync();
                BoxHelper.ShowLoadingDialog(shoter);
            }
        }