The MVVM Community Toolkit binaries furnished as a plugin for Unity to make MVVM architecture with NoesisGUI and other frameworks easy!
Full source generator + analyzer support for Unity projects using NoesisGUI and MVVM architecture.
This plugin brings the power of Microsoft's MVVM Community Toolkit into Unityβcomplete with [ObservableProperty], [RelayCommand], [NotifyPropertyChangedFor], validation, messaging, and more ...
- β Full support for source generators and code fix analyzers
- β Clean MVVM architecture with zero boilerplate
- β Compatible with Unity runtime and NoesisGUI binding engine
- β Includes ObservableObject, RelayCommand, Messenger, ObservableValidator
- β Plug-and-play setupβno configuration required
π§ Simple instructions:
- Clone or download this repo
- Merge the
Assets/folder into your Unity project'sAssets/folder
OR copy thePlugins/folder directly into your project - β Done. The generators and analyzers are already configured.
[Serializable] public partial class MainViewModel: ObservableObject {
public string BuildInfo => $"v{Application.version} | {DateTime.Now:yyyy}" ;
[RelayCommand] void OnNewCampaign( ) => Debug.Log( nameof(OnNewCampaign) ) ;
[RelayCommand] void OnContinue( ) => Debug.Log( nameof(OnContinue) ) ;
[RelayCommand] void OnLoadGame( ) => Debug.Log( nameof(OnLoadGame) ) ;
[RelayCommand] void OnOptions( ) => Debug.Log( nameof(OnOptions) ) ;
[RelayCommand] void OnExit( ) => Application.Quit( ) ;
}No boilerplate. No ceremony. Just clean, modern MVVM.
- π Community Toolkit (GitHub)
- π Microsoft Learn: Introduction to the MVVM Toolkit
- π§ͺ Source Generator Docs
- π‘ MVVM Sample App
- π§ NoesisGUI
Built by Arkaen, LLC
Maintained by Aaron T. Carter
MIT β use it, fork it, ship it ...
The original MVVM Community Toolkit license can be found in the "License.md" file.