Skip to main content
Version: 29.2.35 🚧

Implement the Skillz Delegate

Overview​

Control of your application is given to Skillz when you launch the Skillz UI. Because of this, you'll need to implement the Skillz Delegate interface, which contains callbacks that will be invoked for key events. There are two events that are essential for interacting with Skillz:

  1. When a match is starting.
  2. When the user is exiting the Skillz UI (via the sidebar menu).

The following sections describe how to implement these two methods of the Skillz Delegate for each platform.

Important Note for Unity Integrations​

To better understand how the Skillz SDK works with Unity please refer to our guidance on Unity Script Execution

For Unity, you need to implement the SkillzMatchDelegate interface as a regular C# class. This will be instantiated when launching Skillz later.

SkillzGameController.cs
using SkillzSDK;
using UnityEngine.SceneManagement;

public sealed class SkillzGameController : SkillzMatchDelegate
{
private const string GameSceneName = "Level1"; // Your game scene name
private const string StartMenuSceneName = "StartMenu"; // Your menu scene (optional)

public void OnMatchWillBegin(Match matchInfo)
{
}

public void OnSkillzWillExit()
{
}
}

Implementation of these methods will be covered later.