public static void MenuOneKeyBuildAll() { System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch(); sw.Start(); AssetProcessorMain.ProcessAll(); sw.Stop(); Debug.Log(string.Format("后处理完成,耗时:{0} s", sw.ElapsedMilliseconds / 1000f)); }
public static void MenAllPlay() { AssetProcessorMain.ProcessAll(); EditorApplication.isPlaying = true; }