Installation
Installation
[!NOTE] Starting with version 2.0, distribution in Unity has been changed to NuGet. For documentation prior to version 1.x, please refer to v1 branch.
The following NuGet packages are available.
Package | Latest version |
---|---|
VitalRouter | |
VitalRouter.Extensions.DependencyInjection | |
VitalRouter.R3 | |
VitalRouter.MRuby |
Unity
[!NOTE] Requirements: Unity 20222.2+ This limitation is due to the use of the Incremental Source Generator.
- Install NugetForUnity.
- Open the NuGet window by going to NuGet > Manage NuGet Packages, after search for the "VitalRouter" packages, and install it.
- Optional
- The following extensions for Unity are available from the Unity Package Manager:
-
https://github.com/hadashiA/VitalRouter.git?path=/src/VitalRouter.Unity/Assets/VitalRouter#2.0.0
- Install UniTask >= 2.5.5
- If UniTask is installed,
VITALROUTER_UNITASK_INTEGRATION
flag is turned on and the optimized GC-free code is executed. - See UniTask Integration section for more details.
- If UniTask is installed,
- Install VContainer >= 1.16.6
- For bringing in DI style, VitalRouter supports Integration with VContainer, a fast and lightweight DI container for Unity.
- See DI section for more details.
-
- The following extensions for Unity are available from the Unity Package Manager: