Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
upgrading_from_old_pdk [14-10-2016 14:55]
admin
upgrading_from_old_pdk [14-10-2016 16:06]
admin
Line 1: Line 1:
 ==== Upgrading the PDK ==== ==== Upgrading the PDK ====
 This guide is based only for if you already have an old version of the PDK in your project. To start a new project and import the Pillo functionality for the first time, please see the [[getting_started|getting started guide]] This guide is based only for if you already have an old version of the PDK in your project. To start a new project and import the Pillo functionality for the first time, please see the [[getting_started|getting started guide]]
- 
-  - Backup your project just to be safe. (you should always have version control anyways). 
-  - Delete your old Pillo folder with the PDK.dll and its content. 
-  - Import the pillo unity package (PilloDeveloperKit_3.0.6_win\PilloPDK\lib\UnityPackages). 
-  - Replace the scene PilloController object with the with the new PilloController prefab that you just got from the package. 
-  - Enable UseEvents on the PilloController game object if you want to use the new event system. 
-  - Drag and drop the PilloSubscriber prefab into your scene if you want to use an example event subscriber. 
  
 === Back up your project === === Back up your project ===
Line 17: Line 10:
   * Get rid of empty entries in the project hierachy. E.g. when you have imported your Pillo Controller on the Main Camera, there will be a empty script object left. Delete this before continuing. ​   * Get rid of empty entries in the project hierachy. E.g. when you have imported your Pillo Controller on the Main Camera, there will be a empty script object left. Delete this before continuing. ​
   *  Do not delete the folder if there is other data inside. E.g. if you have put art assets inside the PDK folder. Naturally this will be deleted as well. Only delete the Pillo PDK files! ​   *  Do not delete the folder if there is other data inside. E.g. if you have put art assets inside the PDK folder. Naturally this will be deleted as well. Only delete the Pillo PDK files! ​
 +
 +=== Import the Pillo Development Kit ===
 +Import the Pillo Development Kit as you would with any third party Unity package. Go to Assets > Import Package > Custom Package and link to the PDK3.1.0.unitypackage that is located in the PilloPDK\lib\UnityPackages folder of the PDK zip. Required for development is everything located in the _Core folder. Additionally you can import the Assets and Examples folders if you wish to get the demo data.
  
 === Updating the project === === Updating the project ===
 Now simply drag and drop the PilloController.prefab in your scene. All old script **should** work with the new version of the PDK.. Additionally if you want to switch to the new [[Event system]], drop the PilloSubscriberExample.prefab into the scene. ​ Now simply drag and drop the PilloController.prefab in your scene. All old script **should** work with the new version of the PDK.. Additionally if you want to switch to the new [[Event system]], drop the PilloSubscriberExample.prefab into the scene. ​