Peppermint Data Binding is a lightweight data binding framework for Unity. It provides a simple and easy way for Unity games to utilize data binding.
New features- Added ObservableDictionary.- Added ListSyncController and DictionarySyncController.
Overview•Clean codePeppermint data binding is based on property and reflection. The class does not need to inherit from specified class or interface, any object that has properties can be used as a binding source or target. Existing code can support data binding with only minimal changes.*To detect source changes, the source must implement INotifyPropertyChanged interface, or inherits the Bindable base class.•Easy to setupMaking the UI support data binding is very easy. You only need to add three types of components: DataContext, DataContextRegister and Binder. Most components have very few parameters to setup.The built-in binders include binders for all uGUI controls, ImageBinder, AnimatorBinder, CustomBinder, Selector, Setter, Getter, etc. You can easily create your own binder class to support new features.•Model-View-ViewModel readyPeppermint data binding was designed to make it easy to build game UI using the MVVM pattern. A clean separation between application logic and the UI will make your game easier to test, maintain, and evolve.•PerformanceExtensively optimized C# code, e.g. type cache, object pool, custom event, fast delegate, etc.Features-Support OneWay, TwoWay and OneWayToSource binding modes.-Support data conversion.-Support binding to nested properties.-Support binding to collections.-Support dynamic binding.-Support collection view.-Support command.-Support uGUI and NGUI.-Editor tools to make data binding development easier.-Optimized for performance.-Support JIT/AOT compilation (iOS, Android, webGL).-Model-View-ViewModel ready.-Full source code included.Editor supportPeppermint data binding includes some useful editor utilities, which can make data binding development more easily.
-Bindable Property Code BuilderGenerates code snippet for all bindable properties.
-Implicit Converter Code BuilderGenerates implicit operator type list.
-AOT Code BuilderGenerate type registration code for AOT compilation.
-Code Check ToolVerifies all property name strings.
-Data Binding GraphA viewer which displays data binding components within a transform node.
-SpriteSet BuilderBuilds the SpriteSet from specified directory.
-BindingManager DebugShows the runtime status of the BindingManager.
Includes 30+ tutorials and examples.
Links:DemoDocumentationExample source codeForum
Support E-mail: peppermint-unity@hotmail.com