Quick Start
This guide assumes you have completed the Installation steps and the SDK is imported in your project.
Scene setup
- In your Unity scene, create an empty GameObject (e.g.
PlayOpsBootstrap). - Attach a new MonoBehaviour script to it (e.g.
GameBootstrap.cs). - 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
- Defining Custom Events — define your first analytics event
- Remote Configuration — deliver live config changes without a new app release