SDK Installation
Install the Ilara SDK for your game engine — Unity, Unreal Engine, Godot, or any platform via REST API.
Unity SDK
The Unity SDK supports Unity 2020.3 LTS and newer, with both Mono and IL2CPP scripting backends.
Method 1: Unity Package Manager (Recommended)
Add the package via git URL in your manifest.json:
{class="code-string">"dependencies": {class="code-string">"com.ilara.sdk": class="code-string">"https:class="code-commentclass="code-string">">//github.com/ilara/unity-sdk.git"}}
Or use the Package Manager UI: Window > Package Manager > + > Add package from git URL
Method 2: Manual Import
- Download the latest release from GitHub
- Import the .unitypackage into your project
- The SDK will be in Assets/Ilara/
Configuration
Create a configuration asset: Assets > Create > Ilara > Config
class=class="code-string">"code-comment">// IlaraConfig ScriptableObjectapiKey = class="code-string">"pk_live_your_key" class=class="code-string">"code-comment">// RequiredbaseUrl = class="code-string">"https:class="code-commentclass="code-string">">//api.ilara.ai" // DefaultdebugMode = false class=class="code-string">"code-comment">// Enable console loggingcacheFlags = true class=class="code-string">"code-comment">// Cache feature flags locallyflagCacheDuration = 300 class=class="code-string">"code-comment">// Cache TTL in secondsautoTrackSessions = true class=class="code-string">"code-comment">// Auto track session eventseventBatchSize = 10 class=class="code-string">"code-comment">// Events per batcheventFlushInterval = 30 class=class="code-string">"code-comment">// Seconds between flushes
Unreal Engine SDK
The Unreal SDK supports Unreal Engine 5.0+ with both C++ and Blueprint access.
Method 1: Copy to Plugins (Recommended)
# Clone the SDK to your Plugins foldergit clone https:class=class="code-string">"code-comment">//github.com/ilara/unreal-sdk.git YourProject/Plugins/Ilara# Regenerate Visual Studio/Xcode project files# In Unreal Editor: File > Generate Visual Studio Project Files# Enable the plugin# Edit > Plugins > Search class="code-string">"Ilara" > Enable
Method 2: Engine Plugin
For use across multiple projects, copy to your engine installation:
cp -r Ilara Engine/Plugins/Marketplace/Ilara
Configuration
Configure in Project Settings > Plugins > Ilara:
Godot SDK
The Godot SDK supports Godot 4.0+ with both GDScript and C# support.
Installation
# Clone to your addons foldergit clone https:class=class="code-string">"code-comment">//github.com/ilara/godot-sdk.git addons/ilara# Or add as a git submodulegit submodule add https:class=class="code-string">"code-comment">//github.com/ilara/godot-sdk.git addons/ilara
Enable the plugin: Project > Project Settings > Plugins > Ilara > Enable
Configuration
extends Nodefunc _ready() -> void:# Basic initializationIlara.initialize(class="code-string">"pk_live_your_key")# Or with custom settingsIlara.initialize(class="code-string">"pk_live_your_key",class="code-string">"", # Game ID(optional)class="code-string">"https:class="code-commentclass="code-string">">//api.ilara.ai" # Custom base URL(optional))
REST API
Use the REST API directly for any platform without SDK support, or for server-side integration.
Base URL
Authentication
Include your API key in the X-API-Key header:
curl -X POST class="code-string">"https:class="code-commentclass="code-string">">//api.ilara.ai/v1/events/events" \-H class="code-string">"X-API-Key: pk_live_your_key" \-H class="code-string">"Content-Type: application/json" \-d '{class="code-string">"player_id": class="code-string">"player-uuid",class="code-string">"event_name": class="code-string">"level_complete",class="code-string">"properties": {class="code-string">"level": 5,class="code-string">"score": 12500}}'
Verify Installation
After installation, verify the SDK is working:
async void Start(){await IlaraClient.Instance.Initialize();class=class="code-string">"code-comment">// Check initializationDebug.Log($class="code-string">"Ilara initialized: {IlaraClient.Instance.IsInitialized}");class=class="code-string">"code-comment">// Track a test eventIlaraClient.Instance.TrackEvent(class="code-string">"sdk_test", new {test = true,timestamp = DateTime.UtcNow.ToString(class="code-string">"o")});class=class="code-string">"code-comment">// Force sendawait IlaraClient.Instance.FlushEvents();Debug.Log(class="code-string">"Test event sent! Check your dashboard.");}
- SDK initializes without errors
- Test event appears in Dashboard > Events > Live Stream
- No network errors in console/logs
Next Steps
- Quick Start Guide — Track your first real events
- Unity SDK Reference — Complete Unity API docs
- Unreal SDK Reference — Complete Unreal API docs
- Godot SDK Reference — Complete Godot API docs