Theme switcher

Overview & Getting Started

Welcome to Haxelo SDK documentation, this will guide you to quickly integrate and utilize the SDK functionalities within your games.

Basics

Lets get started



Haxelo SDK Methods

In the project, there is sample initialization script that will show you how you can initilize Haxelo Session and use all of the methods.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 using System.Collections; using System.Collections.Generic; using UnityEngine; using haxelo; public class DemoScript : MonoBehaviour { // Start is called before the first frame update void Start() { //Initialize Haxelo Session by passing accurate data UserData data = new UserData("Female", 25); Haxelo.Initialize(data, false); //Set Target Camera Haxelo.setTargetCamera(Camera.main); //Track magnifier opens to pause the game Haxelo.onMagnifierOpen.AddListener(delegate { Haxelo.Log("Magnifier open event!"); Time.timeScale = 0; }); //Track magnifier opens to unpause the game Haxelo.onMagnifierClose.AddListener(delegate { Haxelo.Log("Magnifier Close event!"); Time.timeScale = 1; }); //Track Clicks to optionally reward user Haxelo.onLinkClick.AddListener(delegate { Haxelo.Log("Link Click event!"); Time.timeScale = 1; }); } //optionally Track player activity private void Update() { Haxelo.Log($"Player Activity {Haxelo.isPlayerActive()}"); } }