On this page4 sections

SDK 3.0 is out for Unity and Godot. It’s the first release where both engines share the same API, so an event tracked in one looks the same in the other.

Install

Unity

Add the package by Git URL in the Package Manager:

https://github.com/cadence-games/cadence-unity.git#3.0.0

Godot

Copy addons/cadence into your project and enable Cadence under Project → Plugins.

Track an event

Unity

Cadence.Track("level_complete", new { level = 12, stars = 3 });

Godot

Cadence.track("level_complete", { "level": 12, "stars": 3 })

Offline batching

Phones lose signal on the subway and the OS kills games in the background. 3.0 writes events to disk before it sends them, in batches of up to 50. If the game is killed mid-send, the batch goes out on the next launch. In our tests on a Pixel 6a, we lost 0 of 100,000 events across 2,000 forced kills.

Smaller build

The Unity package now adds 180 KB to an Android build, down from 610 KB, because we dropped the JSON library and use Unity’s own serializer.