TippingGame / F8ExcelTool

Unity读取Excel工具,点击F8自动生成C#索引字段,能读取Excel导出的二进制文件,运行时读取Excel文件,支持Win/Android/iOS/Mac/Linux
MIT License
5 stars 1 forks source link

Excel 导出二进制文件,怎么做? #1

Closed uiosun closed 10 months ago

uiosun commented 10 months ago

非游戏行业,想试试咱们这个插件,但看注释有点迷茫。

遂请教一下:

  1. Excel 导出二进制文件,是什么意思?
  2. 运行时直接读取 Excel 文件,支持读取公式吗?
TippingGame commented 10 months ago

1.可以看代码这里, IFormatter f = new BinaryFormatter(); Stream s = new FileStream(BinDataPath + "/" + container.GetType().Name + ".bytes", FileMode.OpenOrCreate, FileAccess.Write, FileShare.Write); f.Serialize(s, container); LogF8.LogConfig("已序列化 " + BinDataPath + "/" + container.GetType().Name + ".bytes");

TippingGame commented 10 months ago
  1. 测试了简单的加法是支持的,具体实现 IExcelDataReader excelReader = null; datas[j] = excelReader.GetString(j);
uiosun commented 10 months ago
  1. 测试了简单的加法是支持的,具体实现 IExcelDataReader excelReader = null; datas[j] = excelReader.GetString(j);

收到,我测了常用的 ROUND、INDEX、跨表公式,全部支持,太好用了!