Import Packages
Import Latest Package Into New Project
This section describes how to import the latest Play For Dream Unity packages into a fresh Unity project.
If you are using any prior version of Play For Dream Unity packages in your project, you can upgrade it to the latest version.
Also, you can revert your project to use prior versions of Play For Dream Unity packages if you wish.
Perform the following steps to import latest package into new project:
- Download the package of latest version from Development Center, it should be a zipped file which includes
com.yvr.core
,com.yvr.utilities
andcom.yvr.platform
folders. - Unzip the downloaded SDK package somewhere on your disk.
- Open the project in which you want to import the packages.
- From the menu, go to
Window > Package Manager
. - Within the popped-up window, click the "+" on the upper-left corner, select
Add package from disk
, enter the path you previously unzipped the downloaded SDK and selectUtilities
,Core
,Platform
package JSON file in turn, e.gcom.yvr.core/package.json
.
Note
The SDK Package is managed by Unity Package Manager
. After performing the above operations, the SDK package will be the Local Package of your unity project. For further information about Unity Package Manager
, please refer to Unity Documentation.
Caution
Do not delete the unzipped SDK package. As the packages used in your project point directly to the unzipped folder on your disk, any updates in the folder will also change the related contents in your project.
The schematic diagram is as follows:
Upgrade To Latest Package
This section describes how to upgrade any prior versions of Play For Dream Unity packages within existing projects to the latest version of the package.
The following steps should be performed:
- Close Unity, if open.
- Enter the path where you unzipped the SDK package.
- Delete the target package folder, e.g.
com.yvr.core
. - Follow step 2 through step 5 from the Import Latest Package Into New Project section.
Revert to Prior Versions Of Package
This section describes how to revert the latest version of Play For Dream Unity packages within projects to the prior version of the package.
- Download the prior version of the package from Development Center.
- Follow step 1 through step 4 from the Upgrade To Latest Package.
Note
The essential of Upgrade
and Revert
is to modify the contents in your SDK folder.