To import the Chroma SDK into Unity using the Unity Package Manager, follow these steps:
- Open the Unity Package Manager, then click the
+
button in the toolbar. SelectAdd package from git URL
from the menu.
- In the text box that appears, enter the URL https://github.com/razerofficial/Unity_ChromaSDK_Unicode.git and click Add.
If the installation is successful, the Razer Chroma SDK
package will appear in the package list with the git
tag.
The package includes samples scenes that download to the Packages\RazerChromaSDK\Tests\Scenes
folder. Unfortunately, opening scenes in this folder causes a read-only error.
The Packages\RazerChromaSDK\Editor\RazerChromaSDKMenu.cs
editor script adds a menu item to setup the sample scenes and StreamingAssets
sample Chroma animations. The Assets->Razer ChromaSDK - Setup Sample Scenes
menu item will prepare assets automatically. This avoids the issue with packaged scenes showing the readonly package error.
After the menu item prepares assets, scenes will be added to Assets/Scenes
and Chroma animations will be added to Assets/StreamingAssets/Animations
.
Example scenes use TextMesh Pro
so you may need to import TMP Essentials
after opening a sample scene.