Funtico Games SDK is a Unity SDK for integrating games with the Funtico Games platform. The SDK provides a complete set of tools for working with tournaments, rooms, user profiles, and session management.
- 📖 SDK Usage Guide - detailed instructions on setup and SDK usage
- 🔧 Internal Architecture - description of internal logic and SDK services
- 🎮 Matchmaking Service - real-time multiplayer matchmaking (optional module)
The SDK requires:
- ✅ Newtonsoft.Json (3.2.1+) - installs automatically with SDK
⚠️ UniTask - must be installed separately⚠️ Unity WebP - must be installed separately
Important: Install these BEFORE installing the SDK!
📖 Detailed guides:
For Unity WebP, it's recommended to use OpenUPM registry.
Manual Setup via Project Settings:
- Open
Edit > Project Settings > Package Manager - Add a new Scoped Registry:
- Name:
OpenUPM - URL:
https://package.openupm.com - Scope(s):
com.netpyoung.webp
- Name:
- Click
Save - Open Package Manager and install
WebPfrom "My Registries"
After that use Package Manager to import packages:
- Open
Window > Package Manager - Click
+>Add package from git URL... - Add each URL:
https://github.com/Cysharp/UniTask.git?path=src/UniTask/Assets/Plugins/UniTaskhttps://github.com/netpyoung/unity.webp.git?path=unity_project/Assets/unity.webp
Wait for Unity to finish importing before proceeding to Step 2.
Method A: Via Package Manager (Recommended)
- Open
Window > Package Manager - Click
+button in the top-left corner - Select
Add package from git URL... - Enter:
https://github.com/pillarex/FunticoGamesSDK.git?path=Assets/FunticoGamesSDK - Click
Add
Method B: Install Everything at Once via manifest.json
If you prefer installing via git URLs instead of OpenUPM, add all to your Packages/manifest.json:
{
"dependencies": {
"com.funticogames.sdk": "https://github.com/pillarex/FunticoGamesSDK.git?path=Assets/FunticoGamesSDK",
"com.cysharp.unitask": "https://github.com/Cysharp/UniTask.git?path=src/UniTask/Assets/Plugins/UniTask",
"com.netpyoung.webp": "https://github.com/netpyoung/unity.webp.git?path=unity_project/Assets/unity.webp"
}
}Note:
- Newtonsoft.Json will be installed automatically by the SDK
After installation:
- Wait for Unity compilation to complete (may take a few minutes)
- Check the Console for any errors
- Verify packages appear in Package Manager:
- Funtico Games SDK
- UniTask
- Unity WebP
- Newtonsoft Json
Dependencies not found:
- Make sure you installed all dependencies BEFORE installing the SDK
- Check that Git is installed on your system (Unity needs it for git URLs)
- For Unity WebP: verify OpenUPM scoped registry is properly configured in Project Settings
Compilation errors:
- Clear Package Manager cache: delete
Library/PackageCachefolder - Restart Unity Editor
- Reinstall packages one by one
Need more help?
using System;
using FunticoGamesSDK;
using UnityEngine;
public class GameInitializer : MonoBehaviour
{
private async void Start()
{
// Create error handler
IErrorHandler errorHandler = new MyErrorHandler();
// Initialize SDK
await FunticoSDK.Instance.Initialize(
env: FunticoSDK.Environment.STAGING,
privateGameKey: "your-private-key",
publicGameKey: "your-public-key",
userToken: "user-platform-token",
errorHandler: errorHandler
);
Debug.Log("SDK initialized successfully!");
// Get user data
var userData = await FunticoSDK.Instance.GetUserData();
Debug.Log($"User: {userData.Name}");
}
}
// Example error handler
public class MyErrorHandler : IErrorHandler
{
public void ShowError(string errorMessage, string errorTitle = "Error",
string buttonText = "OK", Action additionalActionOnCloseClick = null)
{
Debug.LogError($"{errorTitle}: {errorMessage}");
additionalActionOnCloseClick?.Invoke();
}
}The SDK requires the following keys:
- Public Game Key - public key for your game
- Private Game Key - private key for your game
- User Token - user token from Funtico platform
The SDK supports two environments:
FunticoSDK.Environment.STAGING- test environment for developmentFunticoSDK.Environment.PROD- production environment
Recommendation: Use STAGING for development and testing, PROD - only for release versions.
If you encounter issues:
- Check that all dependencies are installed
- Make sure you're using an up-to-date Unity version (2021.3+)
- Verify your access keys are correct
- Contact Funtico Games technical support
SDK Version: 1.0.0