# unity luban protobuf3.21.12 bin **Repository Path**: absence/unity-luban-protobuf-bin ## Basic Information - **Project Name**: unity luban protobuf3.21.12 bin - **Description**: 使用luban配表工具,导出proto文件,在unity中加载配置bytes - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-04-28 - **Last Updated**: 2023-05-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: luban, protobuf ## README 说明: 示例工程中有两个scripts版本。 scripts原版代表使用protobuf csharp未修改任何源码的版本,里面的config是使用原版protoc.exe导出的。 当前启用的是精简protobuf的版本,去掉了反射等不需要的功能。 操作步骤: 点击gen.bat生成proto文件与bin文件 点击export_csharp.bat生成csharp conig.cs文件 加载与使用: var txt = Resources.Load("item_tbitem"); var item= ItemTbItem.Parser.ParseFrom(txt.bytes); for(int i = 0; i < item.DataList.Count; i++) { Debug.Log(item.DataList[i].Name); }