Get Ondara running in your project in under 5 minutes. This guide covers installation, initialization, and your first API call.
Add via Git URL in Unity Package Manager
https://github.com/ondara/unity-sdk.git123456789101112using Ondara;using UnityEngine;
public class GameManager : MonoBehaviour{ async void Start() { // Initialize with your API key await Ondara.Initialize("YOUR_API_KEY"); Debug.Log("Ondara initialized!"); }}12345678910111213// Anonymous login (great for testing)var player = await Ondara.Auth.LoginAnonymous();
// Email loginvar player = await Ondara.Auth.LoginWithEmail( "player@example.com", "password123");
// Google loginvar player = await Ondara.Auth.LoginWithGoogle();
Debug.Log($"Logged in as: {player.Id}");Anonymous login is perfect for getting started. You can add more authentication methods later without losing player data.
Get your game up and running with Ondara in minutes.
Now that you have Ondara initialized and players authenticated, explore these services: