UnityMVVM 0.13.5
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package UnityMVVM --version 0.13.5
NuGet\Install-Package UnityMVVM -Version 0.13.5
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="UnityMVVM" Version="0.13.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="UnityMVVM" Version="0.13.5" />
<PackageReference Include="UnityMVVM" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add UnityMVVM --version 0.13.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: UnityMVVM, 0.13.5"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package UnityMVVM@0.13.5
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=UnityMVVM&version=0.13.5
#tool nuget:?package=UnityMVVM&version=0.13.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
UnityMVVM
The MVVM pattern core implemented for Unity3d.
It is implemented over Zenject plugin. You have to add Zenject to your project to use it. (https://github.com/modesttree/Zenject)
Quick start
This is an example of simple installer with UnityMVVM plugin usage.
public class CoreInstaller : MonoInstaller
{
[SerializeField] private Transform _uiRoot;
[SerializeField] private GameObject _myViewPrefab;
public override void InstallBindings()
{
Container.UseAsMvvmContainer(new []
{
("Ui", _uiRoot),
});
Container.InstallView<MyViewBehaviour, IMyViewModel, MyViewModel>("MyView", _myViewPrefab);
}
}
After installing such installer you can add such StartupBehaviour behaviour to your scene to open the initial view.
public class StartupBehaviour : MonoBehaviour
{
private IViewManager _viewManager;
[Inject]
public void Construct(IViewManager viewManager) // IViewManager is being bound automatically
{
_viewManager = viewManager;
}
private void Start()
{
_viewManager.Open(
"Ui", // Layer to open a view on
"MyView" // The view name
);
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- AsyncReactAwait (>= 0.9.33)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.19.8 | 202 | 2/2/2025 |
| 0.19.5 | 174 | 2/2/2025 |
| 0.19.3 | 180 | 2/2/2025 |
| 0.18.5 | 194 | 12/15/2024 |
| 0.18.3 | 175 | 12/15/2024 |
| 0.17.7 | 199 | 12/3/2024 |
| 0.17.5 | 176 | 12/2/2024 |
| 0.16.4 | 194 | 9/3/2024 |
| 0.16.1 | 196 | 9/3/2024 |
| 0.15.21 | 197 | 6/5/2024 |
| 0.15.20 | 190 | 6/5/2024 |
| 0.15.19 | 185 | 6/5/2024 |
| 0.15.18 | 198 | 6/5/2024 |
| 0.15.17 | 201 | 6/5/2024 |
| 0.15.4 | 204 | 2/26/2024 |
| 0.15.2 | 206 | 2/26/2024 |
| 0.14.5 | 154 | 11/15/2023 |
| 0.13.5 | 153 | 11/12/2023 |
| 0.0.0 | 155 | 11/12/2023 |
Loading failed