Quick start guide
This guide will show you how to use Paket.Unity3D and make NuGet dependencies available in your Unity3D project.
Unity3D project
Given a Unity3D project named YourAwesomeGame
with the following directory structure:
1: 2: 3: 4: 5: 6: |
|
Installation
You will need to install both Paket and Paket.Unity3D. The simplest way is to create a .paket
directory next to your Assets
directory and download the bootstrapper executables.
paket.bootstrapper.exe
can be found at Paket releases
paket.unity3d.bootstrapper.exe
can be found at Paket.Unity3D releases
Once you've got both files in your .paket
directory, fire up a shell and run both bootstrappers:
1: 2: |
|
This will download the latest executables of Paket and Paket.Unity3D into your .paket
directory.
Initialization
You will have to create a file called paket.dependencies
with the following content:
1:
|
|
Adding a nuget dependency
To add a NuGet dependency, Wooga.Lambda
is used as an example here, append the following to your paket.dependencies
file:
1:
|
|
Downloading the dependency
To actually download Wooga.Lambda
you'll need to run:
1:
|
|
Referencing the dependency
You will have to create a file called paket.unity3d.references
next to your Assets
directory with the following content:
1:
|
|
More on paket.unity3d.references
Installing the dependency
Once the dependency is downloaded you will want to actually add it to your Unity3D project by running:
1:
|
|
Your project directory should now look like this:
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: |
|