This Unity plugin allows you to send reward data from a Unity WebGL build to the Arena Web platform.
- Copy this Git repository URL (with release) : https://github.com/r-sabarish/Arena-Unity-Plugin.git#v1.0.1
- Open your Unity project.
- Go to Window → Package Manager.
- Click the + button (top left corner) → Add package from Git URL...
- Paste the Git URL and click Add.
- You can import samples ( if you want )
After importing the plugin:
- Navigate to Arena → Tools → Setup Arena (quick setup)
- This will automatically add the Arena Manager Bridge and other required components to your current scene.
This is required for Arena integration to function correctly
You must implement your own game reward logic using the ArenaManager.Instance.EndGame() method. Here's a simple example:
using Arena;
public class GameManager : MonoBehaviour
{
public void OnGameFinished()
{
Rewards rewards = new Rewards(arenaCoins: 100, trophies: 10);
// Send the reward to Arena Web
ArenaManager.Instance.EndGame(rewards);
}
}
