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.git1using Ondara;2using UnityEngine;3
4public class GameManager : MonoBehaviour5{6 async void Start()7 {8 // Initialize with your API key9 await Ondara.Initialize("YOUR_API_KEY");10 Debug.Log("Ondara initialized!");11 }12}1// Anonymous login (great for testing)2var player = await Ondara.Auth.LoginAnonymous();3
4// Email login5var player = await Ondara.Auth.LoginWithEmail(6 "player@example.com", 7 "password123"8);9
10// Google login11var player = await Ondara.Auth.LoginWithGoogle();12
13Debug.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: