Skip to content

atcarter714/MVVM-Toolkit-Unity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

🧠 MVVM Community Toolkit for Unity + NoesisGUI

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 ...


🚀 Features

  • ✅ 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

📦 Installation

🧠 Simple instructions:

  1. Clone or download this repo
  2. Merge the Assets/ folder into your Unity project's Assets/ folder
    OR copy the Plugins/ folder directly into your project
  3. ✅ Done. The generators and analyzers are already configured.

🧪 Example Usage

[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.


📚 Resources


🛰 Credits

Built by Arkaen, LLC
Maintained by Aaron T. Carter


🧭 License

MIT — use it, fork it, ship it ...

The original MVVM Community Toolkit license can be found in the "License.md" file.


About

The .NET MVVM Community Toolkit supplied as a fully-working Unity plugin ...

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors