Code Monkey home page Code Monkey logo

excel2csharp's Introduction

unity中Excel转C#相关配置工具

(此方案并不是比较友好的方案,支持的相关数据类型并不充足,相关的枚举、公共配置并没有添加进去。有需求再做其他的配置方案)
相关步骤:将Excel相关数据转为json字符串,并保存在对应位置。 应用启动后在指定位置加载json,并使用litjson插件序列化为对应的类对象。

  1. 需要注意的是,配置表首个字段名称需为Id,类型为int, 类型名称为#号的列不再解析。
  2. 支持相关数据类型如下
类型 说明 默认值
int 整形 0
float 浮点型 0
bool bool型 false
string 字符串 ""
  1. 由于litjson的局限性(可自行修改litjson库),对于其他的复杂类型(如Vector3,List),可通过字符串自行实现
  2. 使用如下

excel2csharp's People

Contributors

long3571 avatar zhang00lei avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.