Skip to main content
Installing the Theymes Unity SDK is a straightforward process. You can either install the SDK from Git or from a tarball. Theymes Unity SDK is distributed as an UPM package and it can be installed either using Git URL or from a tarball. To install the package follow these steps:
For instructions on how to use OpenUPM refer to the OpenUPM documentation. You can either configure OpenUPM directly in the Unity Editor or use their CLI in terminal. The CLI is the easiest method as it automatically sets up the scoped registry automatically and it can automatically detect the latest version.The Theymes SDK OpenUPM package can be found here: https://openupm.com/packages/com.theymes.sdk/To install the Theymes SDK with the CLI, simply use this command in your terminal while in the project root:
If you want to install without the CLI, follow the instructions of the OpenUPM documentation.

Initializing the SDK

To initialize the SDK you must call TheymesSdk.Initialize() method in Awake() of your first scene. Create a new file TheymesSdkInitializer.cs and add the following code to it:
TheymesSdkInitializer.cs
Replace <token> with your game token and <domain> with your game domain. You can find these from your game settings in the Theymes application. Next add a new GameObject to your first scene by clicking GameObject > Create Empty. Name the game object as TheymesSdkInitializer and select it from the Hierarchy panel. Next attach the TheymesSdkInitializer.cs script to the game object by dragging it from the Project panel to the GameObject in the Inspector panel. You are now ready to use the SDK!
If you already have another script to do initialization in your scene, you can add the SDK initialization code there instead.

Next steps

To verify that everything is working correctly, you can try to open the help center by calling TheymesSdk.OpenSupport() method. If you have initialized the SDK correctly with valid token and domain, the help center should open. On Windows, macOS, Linux, and in the Unity Editor, the SDK opens the public support site in the system browser.
Example