Skip to content

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

License

Notifications You must be signed in to change notification settings

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

No packages published