Skip to content

Quick Start

This guide assumes you have completed the Installation steps and the SDK is imported in your project.

Scene setup

  1. In your Unity scene, create an empty GameObject (e.g. PlayOpsBootstrap).
  2. Attach a new MonoBehaviour script to it (e.g. GameBootstrap.cs).
  3. Add the initialization code in Awake() so it runs before any other game logic.

Initialize the SDK

using PlayOps;
using PlayOps.Analytics;
using PlayOps.Configurations;
using UnityEngine;
public class GameBootstrap : MonoBehaviour
{
private PlayOpsSDK playOpsSDK;
void Awake()
{
playOpsSDK = new PlayOpsSDK(
new PlayOpsSettings(
cloudUrl: "GWS_CLOUD_URL",
gameSecret: "GWS_SECRET_KEY"
),
new AnalyticsSettings(
appId: "ANALYTICS_APP_ID",
secret: "ANALYTICS_SECRET"
)
);
playOpsSDK.Initialize();
}
}

Replace the placeholder values with the credentials provided by your Tactile integration contact.

Access services

Once initialized, access the SDK services through the PlayOpsSDK instance:

PlayOpsAnalytics analytics = playOpsSDK.Analytics();
PlayOpsConfigurations configurations = playOpsSDK.Configurations();
configurations.Initialize();

What’s next