08
09/22
unity3d异步加载场景
主场景按钮事件btn click: StartCoroutine(LoadScenceSync("MonitorReport")); unity3d异步加载场景方法(此方法可放到一个单独的loading scene,用进度条展示,进度条比例使用op.progress就行): IEnumerator LoadScenceSync(string sceneName) { //SceneManager.LoadScene("MonitorOffline"); Tool.ShowLoading(); AsyncOperation op = SceneManager.LoadSceneAsync(sceneName); op.allowSceneActivation = false; while (!op.isDone) { ...