摘要:在这资源更新的进度条显示时 using (WebClient client = new WebClient()) { sw.Start(); client.DownloadProgressChanged += new DownloadProgressChangedEventHandler(Progr
阅读全文
摘要:最近在做资源更新时,需要显示现在的进度调。我在Unity中开启了一个线程来做下载任务,然后实时刷新下载进度。然后Unity报了一个错误。 get_isActiveAndEnabled can only be called from the main thread. 意思是Unity中的组件只能运行在
阅读全文
摘要:// 关闭相机 public void CloseCameraDevice() { CameraDevice.Instance.Stop(); CameraDevice.Instance.Deinit(); } // 打开相机 public void OpenCameraDevice() { Cam
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Office.Core; using Microsoft.Office.Interop.Powe
阅读全文
摘要:使用visual studio创建一个控制台程序 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Sys
阅读全文