Adding the Spil SDK

Adding the Spil SDK

As the Spil Games SDK grows and expands, new SDK versions with additional features will be made available. These new versions can update or improve your game. However, previous versions will still be available for legacy games. It is recommended that you update your games to the latest SDK.

Download and Import the Unity package into your project

You can find the latest version of the Unity plugin here: https://github.com/spilgames/spil_event_unity_plugin/releases

Unpack the downloaded archive, inside you will find the native library folders and a Unity package. You can ignore the folder for now and just import the Unity package.

Using the Spil SDK

1. Attach the script named “Spil.cs” to a new GameObject in your startup scene.
2. Make sure to check set the Bundle identifier (iOS) and Package Name (Android) of your game in the Unity PlayerSettings.
3. Go to the Spil SDK menu in the top bar of Unity and select Configuration, the following screen will appear:

Make sure the fields are configured correctly and press the ‘Create default configuration files’ button to retrieve the latest configurations for your game. This step should be repeated before every build delivered to Spil Games to make sure that the latest offline configs are included in the build.

The Spil SDK is now be ready to used, most Spil SDK features will be configured automatically when the SDK initializes, see the specific feature sections to see which integration parts still have to be implemented. Please make sure to also follow the next section ‘GDPR & Privacy Policy’ to make your game GDPR compliant.