Git Product home page Git Product logo

unity_configmanager's Introduction

Unity_ConfigManager

简介:

提供一份类似虚幻的简易Config配置系统(Unity)
具体依赖C#反射机制获取并设置存储值
初始化会存在一定的字符串拼接操作,初始化结束后将所有配置数值存放到字典中占用一定内存

用法:

1.类名前添加[Config]标签标记
2.在需要的字段前添加[Config]标签标记
3.在程序运行时调用this.ReadConfig() 即可读到配置
4.默认配置路径为streamingAssets/Configs/下,默认配置文件名为Default.ini
5.修改配置信息路径等,以及配置符号通过修改ConfigManager下的变量即可

后期待优化:

1.配置中添加执行语句,简单算式等
2.代码优化

unity_configmanager's People

Contributors

skierhou avatar

Stargazers

White avatar

Watchers

 avatar

Forkers

zfalex

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.