-
Notifications
You must be signed in to change notification settings - Fork 4
Importing into your own project
There are two ways to add the UnityOSCToolkit to your own project.
If you've created your project, you will have a project folder. Inside of this folder you will find an Assets folder.
When you download this repository (top-right on the <> Code tab), you will find an Assets folder in this zip file. Copy the contents of the assets folder into your own project assets folder, and Unity should take care of the rest.
You can also install the toolkit using the built-in package manager. Before you can do this, you will need to manually edit a few files of your project, and you need to repeat these steps each time you create a new project:
- Go to your project folder
- Find the Packages/Manifest.json file in the root folder of your project
- Edit this file with a text editor, and add the following lines:
, "scopedRegistries": [ { "name": "HKUECT", "url": "http://37.97.171.71:4873/", "scopes": [ "nl.hku" ] } ]
After editing, make sure it looks like this
(instead of "..." in dependencies, you should have other lines, but I have removed these to keep it short)
Now you're ready to import the toolkit
- Restart Unity, and open the Window -> Package Manager
- You may need to select Advanced -> Show preview packages for some of our pre-1.0.0 packages
- Find the package you want, in this case OSC Toolkit, and click Install to import the package