![]() Packages previously installed are installed via the cache folder instead of downloading it from the server again. nupkg files downloaded from the NuGet server are cached locally in the current user's Application Data folder. You can disable verbose logging by either setting the value to false or completely deleting the line. Add the line to the element in the nfig file. If you are interested in the process NuGetForUnity follows or you are trying to debug an issue, you can force NuGetForUnity to use verbose logging to output an increased amount of data to the Unity console. If it appears the Unity isn't launching or responding, wait a few more minutes before attempting to kill the process. Note: Depending on the size and number of packages you need to install, the Restore operation could take a long time, so please be patient. It can be run manually by selecting the NuGet → Restore Packages menu item. The Restore operation is automatically run every time the project is opened or the code is recompiled in the project. This allows for the packages to be restored from scratch at any point. When a package is installed, the nfig file in the project is automatically updated with the specific package information, as well as all of the dependencies that are also installed. Note: You'll probably want your Packages folder to be ignored by your version control software to prevent NuGet packages from being versioned in your repository. ![]() In the nfig file, this can either be a full path, or it can be a relative path based on the project's Assets folder. By default, this is set to the Assets/Packages folder. NuGetForUnity installs packages into the local repository path defined in the nfig file ( repositoryPath). See more information about nfig files here: The NuGet → Reload nfig menu item is useful if you are editing the nfig file. You can change this to any other NuGet server (such as NuGet.Server or ProGet - see below). By default, this server is set to the package source. NuGetForUnity loads the nfig file in the Unity project (automatically created if there isn't already one) in order to determine the server it should pull packages down from and push packages up to. The version in brackets in the Update button is the currently installed version.Ĭlick the Update button to uninstall the current package and install the new package. The version in brackets on the left is the new version number. The Updates tab shows the packages currently installed that have updates available on the server. The Installed tabs shows the packages already installed in the current Unity project.Ĭlick the Uninstall button to uninstall the package. Note: If the package is already installed an Uninstall button will be displayed which lets you uninstall the package. The name of the package, the version of the package (in square brakets), and a description are displayed.Ĭlick the View License to open the license in a web browser.Ĭlick the Install to install the package. (Useful after pushing a new package to the server and wanting to see it without closing and reopening the window.) Press the Refresh button to refresh the window with the latest query settings. ![]() Type a search term in the Search box to filter what is displayed. The Online tab shows the packages available on the NuGet server.Įnable Show All Versions to list all old versions of a package (doesn't work with ).ĭisable Show All Versions to only show the latest version of a package.Įnable Show Prelease to list prerelease versions of packages (alpha, beta, release candidate, etc).ĭisable Show Prerelease to only show stable releases. To launch, select NuGet → Manage NuGet PackagesĪfter several seconds (it can take some time to query the server for packages), you should see a window like this: ![]() Right-click on it in File Explorer and choose "Open in Unity." How do I use NuGetForUnity? Located here.ĭownload the *.unitypackage file. Install the provided Unity package into your Unity project. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |