Unity3D 2.0.0

There is a newer version of this package available.
See the version list below for details.

Requires NuGet 2.5 or higher.

dotnet add package Unity3D --version 2.0.0
NuGet\Install-Package Unity3D -Version 2.0.0
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="Unity3D" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Unity3D --version 2.0.0
#r "nuget: Unity3D, 2.0.0"
#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.
// Install Unity3D as a Cake Addin
#addin nuget:?package=Unity3D&version=2.0.0

// Install Unity3D as a Cake Tool
#tool nuget:?package=Unity3D&version=2.0.0

Basic Usage

To use this package, define a Directory.Build.props file in the same folder as your .csproj file (or any of its parent folders), and add code like the following:

<Project>
    <PropertyGroup>
        <UnityProjectPath>relative\path\to\UnityProject</UnityProjectPath>
        ... or ...
        <UnityVersion>2022.2.3f1</UnityVersion>
    </PropertyGroup>
</Project>

Then, make sure your .csproj file looks something like this:

<Project Sdk="Microsoft.NET.Sdk">
    <PropertyGroup>
        <TargetFramework>netstandard2.1</TargetFramework>
    </PropertyGroup>
    <ItemGroup>
        <PackageReference Include="Unity3D" Version="2.0.0" />
    </ItemGroup>
    
</Project>

More Info

For complete documentation, see the README on GitHub.

Support is only provided for the Unity versions that Unity itself supports (latest tech stream and latest two LTS releases).

Tested in the following Unity versions.

  • 2022.2, 2022.1
  • 2021.3 LTS, 2021.2, 2021.1
  • 2020.3 LTS, 2020.1
  • 2019.4 LTS
  • 2018.4 LTS
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Unity3D:

Package Downloads
koiverse_lib_base

Package Description

Unilonia.Connector

Package Description

UnityUtil

A set of utility classes and components useful to any Unity project.

TECore

Package Description

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Unity3D:

Repository Stars
realm/realm-dotnet
Realm is a mobile database: a replacement for SQLite & ORMs
Version Downloads Last updated
2.1.3 1,595 8/17/2023
2.1.2 895 4/26/2023
2.1.1 538 2/17/2023
2.1.0 355 1/27/2023
2.0.1 1,851 6/1/2022
2.0.0 418 6/1/2022
2.0.0-rc2 220 5/30/2022
2.0.0-rc1 207 5/21/2022
1.7.0 4,411 12/31/2020
1.6.0 695 12/17/2020
1.5.0 1,194 8/24/2020
1.4.0 858 7/27/2020
1.3.1 1,079 3/11/2020
1.3.0 993 12/23/2019
1.2.0 1,011 8/21/2019
1.1.0 995 6/20/2019
1.1.0-rc2 527 6/20/2019
1.1.0-rc1 534 6/19/2019
1.0.0-rc1 509 6/17/2019

- Unity version can now be parsed automatically from the ProjectVersion.txt file in a Unity project, if not set explicitly.
- Added many new short-hand properties, with more consistent naming (relative paths end in "Dir" or "Assembly", absolute paths end in "Path")
- If neither UnityVersion nor UnityProjectPath are explicitly set, then UnityVersion is set to a constant string to explain the issue
- UnityVersion or UnityProjectPath must be set in a Directory.Build.props, not the project file.
- Added UnityVersionMajor, UnityVersionMinor, UnityVersionPatch, and UnityVersionAsNumber props for manipulation of Unity versions as numbers
- Updated usage notes in all Readme documents
- Internal: added test projects for Tech Stream Unity releases up through 2022.1
- Added a changelog with release notes for all versions thus far, based on Keep a Changelog
- Added Documentation on using the numeric Unity version properties in MSBuild files
- Added Support documentation to main README
- Added a changelog to the repo based on Keep a Changelog
- Updated ASCII art in package readme.txt to use new Unity logo
- Updated package icon to use new Unity logo
- BREAKING CHANGES:
 - Renamed "OSInstallRoot" property to "OSInstallRootPath" and "UnityInstallRoot" to "UnityInstallRootPath", to be consistent with other prop names
 - Reference Include paths no longer need to start with $(UnityInstallRoot)/$(UnityVersion). Most paths will now use a single short-hand property
 - Assembly short-hand properties are now conditionally defined based on UnityVersion