This article will walk you through installing the Skillz SDK in your Unity project. Additionally, it will walk you through configuring your game for Skillz.
Before You Begin
If you plan on adding Firebase to your Unity project, we recommend you use Unity Firebase 6.15.1, as it has been tested with the Skillz SDK.
Firebase Messaging and Dynamic Links
Firebase Messaging and Dynamic Links are currently not supported with Skillz. Using either of these libraries will prevent push notifications and other Skillz SDK features from functioning correctly.
iOS - Optimal Resolution Scaling
Update for optimal resolution scaling for iOS player:
- In Unity go into build settings
- In the lower left click
Playeroption from the left navigation and update the following properties:
Resolution and Presentation
Skillz Unity SDK Installation
Download the Skillz SDK
The latest version of the Skillz SDK for Unity can be found at the Downloads section of the Skillz Developer Console.
Decompress the file after it has finished downloading. Everything will be decompressed into a folder that starts with
skillz_unity_crossplatform. Relative to that folder will be a
sdk_unity_crossplatform_<SDK_VERSION>/Unity/sdk_unity_crossplatform/skillz_unity-<SDK_VERSION>.unitypackage file where
SDK_VERSION is the version of the Skillz SDK that was downloaded.
Import the Unity Package Into Your Project
skillz_unity-<SDK_VERSION>.unitypackage into your Unity project. With your project open in Unity, click the
Assets > Import Package > Custom Package... menu item. Select the
skillz_unity-<SDK_VERSION>.unitypackage file from the previous step.
A dialog will pop up where you can choose the assets from the package to import. Click the 'All' button to make sure everything is checked. Next, click the 'OK' button.
The Skillz SDK is now installed in your Unity project. You should see an
Assets/Skillz/ folder in your project tab.
Alternatively, you can drag and drop the package into your Unity project:
Disable Registry Addition
Skillz bundles a plugin by Google called the External Dependency Manager (EDM), which is used to resolve Android dependencies. On import of the Skillz SDK, EDM will display a dialog, similar to the screenshot below, to ask if you would like to add additional Unity Package Manager registries. Click the "Disable Registry Addition" button to dismiss the dialog.
Configure Your Game for Skillz
Skillz > Settings menu item to bring up the Skillz Settings window:
Set your game ID, the environment (Sandbox or Production), and the orientation for your game.
Please ensure to select the correct orientation if you plan to distribute your game on Android. This setting is important for ensuring your game renders in the correct orientation for gameplay. For instance, if the scene for your main menu is designed for Portrait mode, but your game scene is designed for Landscape, the orientation setting should be set to Landscape.
Additionally, you can choose if users are allowed to exit the Skillz UI via its sidebar menu.
You're now ready to continue integrating your game with Skillz. As you complete the following sections, you'll eventually want to test your game's workflow with Skillz by using the SDK's Unity Companion. And when you're ready to test your game on a mobile device, refer to the instructions on how to build your game for iOS or Android.