DEV Community

Mert Enercan for Hardal

Posted on • Originally published at usehardal.com

How to use Hardal Signal Unity SDK

How to use Hardal Signal Unity SDK

Greetings, mighty internet!

Let’s talk about our fresh product: Hardal Signal Unity SDK

TL:DR

Hardal Signal Unity SDK is a lightweight and easy-to-use tool for Unity projects, allowing developers to track game events seamlessly. This guide will walk you through the installation, setup, and usage of the SDK.

How to use it

Let’s create a boilerplate Unity 2D game and implement Hardal Signal SDK to it step by step. From learning section, i’ll be selecting 2D Platformer Microgame.

Navigating to Window -> Package Manager

This will open a popup. All i need to do is copy Hardal Signal Unity SDK git repository URL and paste it to the input that stays in Install package from git URL option.

https://github.com/usehardal/unity-sdk.git

You’ll be able to see that Hardal package is successfully installed and ready to go!

Let’s send our first event. I’ll be triggering event every time when player dies. First, i need to initialize hardal sdk. Let’s do it by right click at the scene -> select Hardal -> Create Hardal Manager and replace placeholder domain at the Hardal Manager script with my own Hardal Signal domain.

HardalManager will automatically manage initializing the sdk

Now it’s time to implement our tracking code. It’ll be inside of PlayerDeath script file so lets do it. You can check technical documentation from repository itself!

And if you enable Debug option, you’ll start to see event flow from console!

Finally, i can confirm that events are successfully landing via Hardal Analytics Dashboard!

So with that being said, it’s time to go. I hope this one helps you to measure your Game Analytics.

Cya.

Heroku

Amplify your impact where it matters most — building exceptional apps.

Leave the infrastructure headaches to us, while you focus on pushing boundaries, realizing your vision, and making a lasting impression on your users.

Get Started

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay