NuGetForUnity package manager for Unity tools, which facilitates the simple use of package management in Unity

NuGetForUnity package manager for Unity tools, which facilitates the simple use of package management in Unity

Table of contents

NuGetForUnity package manager for Unity tools, which facilitates the simple use of package management in Unity

1. Brief introduction

2. Download and import NuGetForUnity into Unity

3. Simple use of NuGetForUnity in Unity


1. Brief introduction

Unity tool class, some modules that may be used in game development organized by myself, can be used independently to facilitate game development.

This section introduces that it is sometimes convenient to use NuGet to download, install and use related packages in Unity. Here are simple instructions for use. The method is not unique, and it is for reference only.

NuGetForUnity is a NuGet client built from the ground up to run inside the Unity editor. NuGet is a package management system that makes it easy to create packages that are distributed on servers and consumed by users. NuGet supports semantic versioning of packages and dependencies on other packages.

You can learn more about NuGet here: NuGet Gallery | Home

NuGetForUnity provides a visual editor window to view packages available on the server, view installed packages, and view available package updates. A visual interface is also provided to create and edit. nuspec file in order to define and publish your own NuGet packages in Unity.

NuGetForUnity  official website address: https://github.com/GlitchEnzo/NuGetForUnity

2. Download and import NuGetForUnity into Unity

 NuGetForUnity  official website address: https://github.com/GlitchEnzo/NuGetForUnity

1. Enter the URL and find the release download location on the Github official website

2. Find the version you need, scroll down, find the download address, and click to download

3. After downloading, import it into Unity

 4. At this time, the import is successful in the Unity project as shown in the figure

 

3. Simple use of NuGetForUnity in Unity

1. In the menu bar, find NuGet - Manage NuGet Package, click to open

 2. It will automatically initialize for a while when it is opened for the first time, and the opening interface is as follows

3. Check the online package, check the installed package, check the update, as shown in the figure, search for the required package

4. Test and install the Newtonsoft.Json package here

 5. After downloading for a while, it will be installed. In the Installed interface, you can view the packages you have installed.

6. You will also see the packages you installed in the project

 7. The uninstallation of the package is very simple, just click the Uninstall button of the corresponding package

8. It is worth noting that you cannot find some packages, you can check Show All Versions and Show Prerelease to try

 

Guess you like

Origin blog.csdn.net/u014361280/article/details/131990788