Setup Plugins
Introduction
After registering your game in the developer panel, a pair of keys will generate and shown in the game's section. Plugins will use these keys to identify the game and its access. Now, choose a plugins due to your games platform. you can find plugins in our Github page.
Unity3D
Open your project and go to the first scene of your game which will be loaded after the game start then select Window -> Package Manager -> + Drop Down -> Add Package From Url
in the Unity3D editor and enter the url of SDK here. After installing SDK a dialog will be shown, enter the Client ID and Secret. After submit dialog, An Empty Object will create in hierarchy that contain DynamicPixels Initializer.
This component get some inputs:
- Game ID: This value generated when you register your game and is a constant value
- Game Secret: The game's secret is an important value that should be kept very private but you can change it later.
- Development Mode: If you work on customizing game's backend, running and testing backend in local will needed. This toggle send all traffics to your local instance.
- Debug Mode: During game development, you need to see the errors and warnings and use this message to debug your game. This toggle enables showing these messages. Make sure to disable it whenever you want to publish your game.
- Verbose Mode: If you need to see more and deepest log messages enable this toggle.
This component works as the Singleton pattern and keeps plugin data between scenes.
That's it :) keep reading other functions...
Unity Samples
To use Unity SDK easier, we prepared some useful samples about how you can use the functions and arranging the project. You can find this project here.
TypeScript
Coming Soon...