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

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

        ScreenShoter.CaptureScreenShot(filename);
        m_MeshButton.SetActive(true);
        m_CameraButton.SetActive(true);
    }
示例#3
0
        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);
            }
        }