Installation
NuGet
The NuGet package x2net can be installed via the Package Manager UI, or by the following Package Manager console command:
PM> Install-Package x2net
The xpiler converts x2 definition files into corresponding C# source code files. So most probably you will want to install the x2net.xpiler package too.
PM> Install-Package x2net.xpiler
.NET Core Global Tool
If you are using .NET Core SDK 2.1 or newer, you may install and run x2net.xpiler
as a .NET Core global tool with the following command:
dotnet tool install -g x2net.xpiler.tool
Source
You may clone
or download the source code of x2net from its
GitHub repository.
Zipped archives containing specific tagged versions of the source code are available in releases.
Unity3D
When you use x2net in Unity3D, you need to activate the conditional compile flag
UNITY_WORKAROUND
. You should experience no problem using x2net with recent
versions of Unit3D running .NET Framework 4.5 or higher.
If you want to use x2net in older versions of Unity3D depending on Mono, then you
should activate the conditional compile flag UNITY_MONO
too.