Esempio n. 1
0
    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());
    }
Esempio n. 2
0
    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();
        }
    }