Dev environment Setup
Prerequsites
- Git download from here if you don't have it installed.
1. Setup
- Clone the Terrahutton Platform Package repository into a folder on your computer, it should be close to your Unity Projects folder for easy access.
- Create a new Unity project:
- Template: Universal 3D
- Unity Version: 6000.0.35f1
- Name: Anything you like :)
- In your Unity project folder, open: Packages/manifest.json
- Add in the following to the manifest
"scopedRegistries": [
{
"name": "Cesium",
"url": "https://unity.pkg.cesium.com",
"scopes": [ "com.cesium" ]
}
],
"dependencies": {
"com.terrahutton.platform": "file:../path/to/terrahutton-platform-package",
"com.unity.nuget.newtonsoft-json": "3.0.2"
}
- Replace
../path/to/terrahutton-platform-package with the actual relative path to it (Relative meaning from the root of the project)
3. Open the Project in Unity
- Unity will import the following:
- terrahutton-platform-package
- Cesium
- Newtonsoft
4. How to develop new functionality
- Do not place new scripts in your Unity project’s Assets folder (unless they are project-specific).
- Instead, open the Packages folder in Unity, then open the Terrahutton Platform folder.
- Create or edit scripts from there, this ensures that your changes will be apart of the package when you commit.
- When you’re done, only push changes to the Terrahutton Platform Package repo, not your Unity development project.