static void Update() { if (!EditorApplication.isCompiling && isCompiling) { Debug.Log("Finish Compile"); if (!Directory.Exists(Application.dataPath + "/StreamingAssets")) { Directory.CreateDirectory(Application.dataPath + "/StreamingAssets"); } string info_path = Application.dataPath + "/StreamingAssets/build_info.txt"; StreamWriter build_info = new StreamWriter(info_path); build_info.Write("Build from " + SystemInfo.deviceName + " On " + System.DateTime.Now.ToString()); build_info.Close(); EditorCommon.DelEmptyFolder(); } isCompiling = EditorApplication.isCompiling; }