private IEnumerator UploadFiles() { RenderThumbMgr.ReportSegTime(5, "ToUpload"); if (thumbFiles.Count == 0) { onFinish.InvokeGracefully(null, "待渲染零件个数为0"); yield break; } uploadCounter = 0; mUploadFiles = new UploadFiles(); uploadMsg = string.Empty; foreach (var file in thumbFiles.Keys) { UploadUtility.UploadFile(file, OnUploadItemFinish); yield return(null); } }
public static void ExecCmd() { string openpara = string.Empty; string[] ss = Environment.GetCommandLineArgs(); for (int i = 0; i < ss.Length; i++) { if (ss[i] == "-openpara") { openpara = ss[i + 1]; } } Debug.Log("Call RenderEditor.ExecCmd by " + openpara); PlayerPrefs.SetString(RenderThumbMgr.Key_DataFile, openpara); RenderThumbMgr.ReportSegTime(2, "ToPlaying"); EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo(); EditorSceneManager.OpenScene("Assets/BlockEditor/Scenes/GenerateThumb.unity"); EditorApplication.isPlaying = true; }