- Open UPM
- Git URL
- Tarball
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 callTheymesSdk.Initialize() method in Awake() of your first scene. Create a new file TheymesSdkInitializer.cs and add the following code to it:
TheymesSdkInitializer.cs
<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!
Next steps
To verify that everything is working correctly, you can try to open the help center by callingTheymesSdk.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