Galaxy Docs
Search
⌃K
🚀

Get Started

Import the SDK

Unity
Javascript
Cordova
REST
  1. 1.
    Create a game and a leaderboard in your Developer Dashboard.
  2. 2.
    Download Galaxy.unitypackage and import it (double click the unitypackage file when your project is open or choose Assets > Import Package > Custom Package...)
  3. 3.
    In the menu bar, choose GalaxySDK > Open GalaxySDK Settings. In the Inspector, add your Publishable Key found in settings in the dashboard.
AndroidManifest.xml: If you already have an AndroidManifest.xml (or another plugin that causes issues with it), delete /Assets/GalaxySDK/Editor/ModifyUnityAndroidAppManifest.cs
Then add the following line to AndroidManifest.xml manually:
<uses-permission android:name="android.permission.READ_CONTACTS" />
Contact Us: Contact us for the script source for your specific site.
  1. 1.
    Create a game and a leaderboard in your Developer Dashboard.
  2. 2.
    Import the library (paste this code before the closing </body> tag)
<script type="text/javascript" src="<CONTACT US>"></script>
<script type="text/javascript">
galaxy.Initialize("<your publishable key>");
</script>
  1. 1.
    Run cordova plugin add cordova-plugin-galaxy
  2. 2.
    Follow instructions on the Readme
See the REST API documentation

Add functionality

Last modified 10d ago