Real-Serious-Games/Unity-Weld
关于
适用于 Unity 的 MVVM 风格数据绑定系统。
游戏与模拟器实测星标增长
- 24小时
- -1
- 7天
- -1
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Unity-Weld
MVVM-style data-binding system for Unity.
Unity-Weld is a library for Unity 5+ that enables two-way data binding between Unity UI widgets and game/business logic code. This reduces boiler-plate code that would otherwise be necessary for things like updating the UI when a property changes, removes the need for messy links between objects in the scene that can be broken easily, and allows easier unit testing of code by providing a layer of abstraction between the UI and your core logic code.
A series of articles on Unity Weld has been published on What Could Possibly Go Wrong.
Example Unity project can be found here: https://github.com/Real-Serious-Games/Unity-Weld-Examples.
Installation
To install Unity-Weld in a new or existing Unity project:
- Load
Unity-Weld.slnin Visual Studio and build it - Copy
UnityWeld.dllinto your Unity project and place in any directory withinAssets - Copy
UnityWeld_Editor.dllinto your Unity project and place it inside anEditorfolder withinAssets
Alternatively, just copy the UnityWeld/Binding and UnityWeld/Widgets folders into your Assets directory in your Unity project, and copy all the .cs files in UnityWeld_Editor to a folder named Editor inside your Assets directory.
Getting started
Check out the Unity-Weld-Examples repository for some examples of how to use Unity-Weld.
API docmentation is on our wiki.
If you're interested in getting involved feel free to check out the roadmap on Trello, or submit a pull request. Make sure to read our contributing guide first.
探索相关项目
加载中…