Keewano Unity SDK
Loading...
Searching...
No Matches
Custom Events

In addition to automatically collected events, it's recommended to add custom events to help Keewano AI Agents to better understand your gameplay and user behavior patterns specific to your product.

Note
Please provide informative event names as they will be used by the Keewano AI Agents later during analysis in order to understand what is happening in your game.

✅ Prefer event names like OpenedMagicChest and HeroUpgraded.
⛔Avoid generic names such as CustomEvent8 or Action7.

To add a custom event, open the Keewano Custom Event Editor by accessing Keewano > Custom Event Editor menu item.

Custom Event Editor

In the Custom Event Editor you can add new events and their types.
After adding or editing custom, save the changes. Custom events are added to the KeewanoSDK class.

KeewanoSDK.ReportMainLevelStart(15); //Level #15 started
KeewanoSDK.ReportMainLevelWin(15); //User has won level #15
KeewanoSDK.ReportSetHeadHear("Boeotian helmet");
Definition KeewanoSDK.cs:18

The library will create a new folder called Assets/KeewanoCustomEvents, please add it with all its content to your source control, as it contains definitions of the custom events from which the KeewanoSDK methods will be generated.

Warning
In rare cases when your game does not compile because of an unresolved merge conflict, Unity might not run the regeneration code. If such an event occurs, resolve the merge conflicts and the Keewano library will regenerate the correct custom events C# file.