API v1 checking… · p50 — · 0 installs/hr
v0.10.0
Project
View on GitHub
Rabadash8820

Unity/Unity3D 2018 4

New v3.1.1
123 0

A NuGet package for simple, forward-compatible references to any Unity DLL on any platform.

Unity Project

Built with Unity 2018.4.14f1 · download the source from GitHub

Download 0

README

Rendered from GitHub

Unity3D NuGet Package

Unity logo, trademarked by Unity Technologies

NuGet package Changelog (currently v3.1.1) Issues closed

This repository contains the source code for the Unity3D NuGet package.

It allows .NET developers to reference assemblies of the Unity game engine (e.g., UnityEngine.dll) as NuGet packages.

If you find this package useful, consider supporting its development!

Buy Me A Coffee

Unity® and the Unity logo are trademarks of Unity Technologies.

Contents

Usage

  1. Install this NuGet package (See MS Docs for instructions)
  2. For v3 of this NuGet package, add lines like the following to your .csproj file (or any imported MSBuild project file)
    <PropertyGroup>
        <UnityProjectPath>$(MSBuildProjectDirectory)\relative\path\to\UnityProject</UnityProjectPath>
        <!-- Or -->
        <UnityVersion>6000.3.2f1</UnityVersion>
    </PropertyGroup>
    

This satisfies the large majority of use cases.

For more advanced setups, see the full usage docs for your version of this NuGet package:

  • 3.x
  • 2.x
  • 1.x (deprecated and no longer maintained)

Why Another NuGet Package for Unity?

It's true, there are a number of good NuGet packages for Unity already available on nuget.org. Unfortunately, most of these packages are no longer updated and have various issues. Almost all of them fall into one of two categories:

  1. Containing the actual Unity binaries within the package. These packages include:

    The problem with these packages (aside from the questionable legality of re-distributing Unity Technologies' binaries), is that a new version of the package must be pushed for each new version of Unity. When these packages stop being updated (which has happened in almost every case), then they are no longer useful because they don't allow you to program against the latest Unity APIs. Most of them do not have versions for Unity 2019.1+, and/or do not support the modern .NET Standard profiles.

  2. Containing some kind of script that adds references to assemblies from a particular installed version of Unity. The main package in this category is Unity3D.DLLs by Precision Mojo, LLC. This package uses a PowerShell script to add references to the latest version of Unity installed on a user's machine. which is powerful, as it theoretically makes the package forward-compatible with all versions of Unity yet to come. Unfortunately, this package has not been updated since 2013, meaning that many of the NuGet/PowerShell conventions that it relied upon are no longer supported in the newest versions of Visual Studio. Even when the package was current, it located the Unity assemblies in a clever but brittle manner that does not support the newer Unity Hub install locations, assumed that there was only one Unity installation per machine, and, more importantly, only worked on Windows (using the Windows registry). Not to mention, it's hard to collaborate on a project that always uses the latest installed Unity version on every contributor's machine.

Moreover, only Dzmitry Lahoda's and DavidTimber's packages seem to recognize the need for other Unity assemblies besides just UnityEngine. As more advanced Unity users will know, UnityEngine.dll doesn't contain everything. Editor scripts also require a reference to UnityEditor.dll, UI types like Text and Button require a reference to UnityEngine.UI.dll, assemblies from Asset Store assets are stored in the project folder under Assets/, and many types were split from the Unity assemblies as Unity broke up editor features into Packages.

Therefore, this NuGet package was designed with the following goals:

  • Add Unity assembly references programmatically, so that the package is forward-compatible
  • Add references via standard MSBuild tooling, rather than clunky scripts in unfamiliar or unsupported programming languages
  • Allow devs to reference additional Unity assemblies with simple Reference items in the project file, rather than by calling some obscure script
  • Provide short-hand MSBuild properties for the most common Unity assemblies, with paths that resolve on all dev platforms (Windows/MacOS/Linux)
  • Require minimal configuration: just a Unity version or Unity project path, and optional path overrides for non-default setups

Support

Issues and support questions may be posted on this repository's Issues page. Please check if your Issue has already been answered/addressed by a previous Issue before creating a new one. 🙏

Contributing

Please refer to the Contributing guide.

License

MIT

Versions 24
  • v3.1.1 Dec 1, 2025
  • v3.1.0 Dec 1, 2025
  • v3.0.1 May 22, 2025
  • v3.0.0 Jul 16, 2024
  • v3.0.0-rc1 Jul 16, 2024
  • v2.1.3 Aug 16, 2023
  • v2.1.2 Apr 26, 2023
  • v2.1.1 Feb 17, 2023
  • v2.1.0 Jan 27, 2023
  • v2.0.1 Jun 1, 2022
  • v2.0.0 Jun 1, 2022
  • v2.0.0-rc2 May 30, 2022
  • v2.0.0-rc1 May 21, 2022
  • v1.7.0 Dec 31, 2020
  • v1.6.0 Dec 17, 2020
  • v1.5.0 Aug 24, 2020
  • v1.4.0 Jul 27, 2020
  • v1.3.1 Mar 11, 2020
  • v1.3.0 Dec 23, 2019
  • v1.2.0 Aug 21, 2019
  • v1.1.0 Jun 20, 2019
  • v1.1.0-rc2 Jun 20, 2019
  • v1.1.0-rc1 Jun 19, 2019
  • v1.0.0-rc1 Jun 17, 2019
Dependencies 0

No dependencies.

Changelog 24 releases
  1. v3.1.1 Dec 1, 2025
    Download from [GitHub Releases](https://github.com/Rabadash8820/UnityAssemblies/releases/tag/v3.1.1) or [nuget.org](https://www.nuget.org/packages/Unity3D/3.1.1).
  2. v3.1.0 Dec 1, 2025
    Download from [GitHub Releases](https://github.com/Rabadash8820/UnityAssemblies/releases/tag/v3.1.0) or [nuget.org](https://www.nuget.org/packages/Unity3D/3.1.0).
  3. v3.0.1 May 22, 2025
    Download from [GitHub Releases](https://github.com/Rabadash8820/UnityAssemblies/releases/tag/v3.0.1) or [nuget.org](https://www.nuget.org/packages/Unity3D/3.0.1).
  4. v3.0.0 Jul 16, 2024
    Download from [GitHub Releases](https://github.com/Rabadash8820/UnityAssemblies/releases/tag/v3.0.0) or [nuget.org](https://www.nuget.org/packages/Unity3D/3.0.0).
  5. v3.0.0-rc1 Jul 16, 2024
    Download from [GitHub Releases](https://github.com/Rabadash8820/UnityAssemblies/releases/tag/v3.0.0-rc1) or [nuget.org](https://www.nuget.org/packages/Unity3D/3.0.0-rc1).
  6. v2.1.3 Aug 16, 2023
    Download from [GitHub Releases](https://github.com/Rabadash8820/UnityAssemblies/releases/tag/v2.1.3) or [nuget.org](https://www.nuget.org/packages/Unity3D/2.1.3).
  7. v2.1.2 Apr 26, 2023
    Download from [GitHub Releases](https://github.com/Rabadash8820/UnityAssemblies/releases/tag/v2.1.2) or [nuget.org](https://www.nuget.org/packages/Unity3D/2.1.2).
  8. v2.1.1 Feb 17, 2023
    Download from [GitHub Releases](https://github.com/Rabadash8820/UnityAssemblies/releases/tag/v2.1.1) or [nuget.org](https://www.nuget.org/packages/Unity3D/2.1.1).
  9. v2.1.0 Jan 27, 2023
    Download from [GitHub Releases](https://github.com/Rabadash8820/UnityAssemblies/releases/tag/v2.1.0) or [nuget.org](https://www.nuget.org/packages/Unity3D/2.1.0).
  10. v2.0.1 Jun 1, 2022
    Download from [GitHub Releases](https://github.com/Rabadash8820/UnityAssemblies/releases/tag/v2.0.1) or [nuget.org](https://www.nuget.org/packages/Unity3D/2.0.1).
  11. v2.0.0 Jun 1, 2022
    Download from [GitHub Releases](https://github.com/Rabadash8820/UnityAssemblies/releases/tag/v2.0.0) or [nuget.org](https://www.nuget.org/packages/Unity3D/2.0.0).
  12. v2.0.0-rc2 May 30, 2022
    Download from [GitHub Releases](https://github.com/Rabadash8820/UnityAssemblies/releases/tag/v2.0.0-rc2) or [nuget.org](https://www.nuget.org/packages/Unity3D/2.0.0-rc2).
  13. v2.0.0-rc1 May 21, 2022
    Download from [GitHub Releases](https://github.com/Rabadash8820/UnityAssemblies/releases/tag/v2.0.0-rc1) or [nuget.org](https://www.nuget.org/packages/Unity3D/2.0.0-rc1).
  14. v1.7.0 Dec 31, 2020
    Download from [GitHub Releases](https://github.com/Rabadash8820/UnityAssemblies/releases/tag/v1.7.0) or [nuget.org](https://www.nuget.org/packages/Unity3D/1.7.0).
  15. v1.6.0 Dec 17, 2020
    Download from [GitHub Releases](https://github.com/Rabadash8820/UnityAssemblies/releases/tag/v1.6.0) or [nuget.org](https://www.nuget.org/packages/Unity3D/1.6.0).
  16. v1.5.0 Aug 24, 2020
    Download from [GitHub Releases](https://github.com/Rabadash8820/UnityAssemblies/releases/tag/v1.5.0) or [nuget.org](https://www.nuget.org/packages/Unity3D/1.5.0).
  17. v1.4.0 Jul 27, 2020
    Download from [GitHub Releases](https://github.com/Rabadash8820/UnityAssemblies/releases/tag/v1.4.0) or [nuget.org](https://www.nuget.org/packages/Unity3D/1.4.0).
  18. v1.3.1 Mar 11, 2020
    Download from [GitHub Releases](https://github.com/Rabadash8820/UnityAssemblies/releases/tag/v1.3.1) or [nuget.org](https://www.nuget.org/packages/Unity3D/1.3.1).
  19. v1.3.0 Dec 23, 2019
    Download from [nuget.org](https://www.nuget.org/packages/Unity3D/1.3.0).
  20. v1.2.0 Aug 21, 2019
    Download from [nuget.org](https://www.nuget.org/packages/Unity3D/1.2.0).
  21. v1.1.0 Jun 20, 2019
    Download from [nuget.org](https://www.nuget.org/packages/Unity3D/1.1.0).
    
    First stable release.
  22. v1.1.0-rc2 Jun 20, 2019
    Download from [nuget.org](https://www.nuget.org/packages/Unity3D/1.1.0-rc2).
    
    Final preparations for first stable version.
  23. v1.1.0-rc1 Jun 19, 2019
    Download from [nuget.org](https://www.nuget.org/packages/Unity3D/1.1.0-rc1).
  24. v1.0.0-rc1 Jun 17, 2019
    Download from [nuget.org](https://www.nuget.org/packages/Unity3D/1.0.0-rc1).
    
    Initial package release.

Comments

No comments yet. Be the first!