Unity3D 2.0.0-rc2

Suggested Alternatives

Unity3D 2.1.2

This is a prerelease version of Unity3D.
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-rc2                
NuGet\Install-Package Unity3D -Version 2.0.0-rc2                
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-rc2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Unity3D --version 2.0.0-rc2                
#r "nuget: Unity3D, 2.0.0-rc2"                
#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-rc2&prerelease

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

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-rc2" />
    </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

- 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
- Added UnityVersionMajor, UnityVersionMinor, UnityVersionPatch, and UnityVersionAsNumber props for manipulation of Unity versions as numbers
- Updated usage notes in all Readme documents
- Added test projects for Tech Stream Unity releases up through 2022.1
- 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