Installation
Package Manager - Recommended
OpenUPM
- Install OpenUPM
- Open a command line at the root of your Unity project
openupm add xyz.0xsequence.waas-unity
or using Package Manager UI
- Ensure you have Git 2.14.0 or above installed on your machine
- Open Package Manager (Window > Package Manager)
- Click the "+" icon in the Package Manager window > "Add package from git URL..."
- Paste this url and click Add or press Enter on your keyboard
https://github.com/0xsequence/sequence-unity.git?path=/Packages/Sequence-Unity
Setup
- Open Package Manager (Window > Package Manager)
- From Package Manager, click on "Samples"
- Import "Setup" from Samples
a) This will import a Resources folder with the SequenceConfig scriptable object (more on this in Setup).
- Import
TMP Essentials
(if you haven't already). Note: Unity should prompt you to do this automatically if you attempt to Play or Build with a TextMeshPro object in your scene.
Samples
In addition to this documentation, we've also provided you with a few samples to help with using our SDK.
These can be found by:
- Opening Package Manager
- Finding our SDK "Sequence WaaS SDK"
- Click on "Samples"
- Click "Import" next to any sample you wish to install. This will create a Samples folder under Assets and import the sample there. The sample will be completely mutable as it lives within your Assets folder.
The second sample "Demo Scene" is sample scene that showcases some of the features of our SDK. It serves as a useful supplement to the documentation.
The third sample "Useful Scripts" contains useful scripts and Prefabs that make integrating the SDK easier.
Manual
Installing via Package Manager will put the SDK in a read-only state - note: you will still be able to modify the UI when using Package Manager.
For most use cases, this is ideal. However, we recognize that some advanced users will want the flexibility to edit the SDK as they see fit.
Please note that if you do chose this route that updating the SDK will become more challenging because any changes you make will be overwritten and these changes can easily go unnoticed in a version control system. In general, we feel it is safer to import the SDK in read-only mode via Package Manager and write wrappers to extend as needed, but we empower you to work with our SDK how you see fit.
- Add Newtonsoft.json to your project (if it isn't there already) via package manager. Click on the "+" icon in the Package Manager window > "Add package by name..." and add
com.unity.nuget.newtonsoft-json
. - Download the latest release of the Sequence Unity SDK UnityPackage
- Drag the
.unitypackage
file into your project window and import it - Import
TMP Essentials
(if you haven't already). Note: Unity should prompt you to do this automatically if you attempt to Play or Build with a TextMeshPro object in your scene.