IEnumerator StartWrite() { yield return(new WaitForSeconds(2)); LogDataReadWrite ldh = new LogDataReadWrite(); ldh.LogDataSerlializer(Application.streamingAssetsPath + "/Log.bin", FSPDebuger.LogTrackLoopQueue); Debug.Log("Ok"); yield return(new WaitForEndOfFrame()); }
public static void SelectbinaryLogDataFile() { string filePath = EditorUtility.OpenFilePanel("选择文件", Application.streamingAssetsPath, ""); if (File.Exists(filePath)) { binaryLogDataFilePath = filePath; filename = Path.GetFileNameWithoutExtension(binaryLogDataFilePath); inverseFileOutPutFolderPath = Application.streamingAssetsPath + "/" + filename + ".txt"; LogDataReadWrite ldrw = new LogDataReadWrite(); ldrw.ReLogDataSerlializerAndUncompress(binaryLogDataFilePath, logPdbFilepath, inverseFileOutPutFolderPath); Debug.Log("sucess!"); AssetDatabase.Refresh(); } }