Skip to content

r-sabarish/Arena-Unity-Plugin

Repository files navigation

Arena Unity Plugin

This Unity plugin allows you to send reward data from a Unity WebGL build to the Arena Web platform.

How to Use

  1. Copy this Git repository URL (with release) : https://github.com/r-sabarish/Arena-Unity-Plugin.git#v1.0.1
  2. Open your Unity project.
  3. Go to WindowPackage Manager.
  4. Click the + button (top left corner) → Add package from Git URL...
  5. Paste the Git URL and click Add.

image

  1. You can import samples ( if you want )

image


Plugin Setup

After importing the plugin:

  • Navigate to ArenaToolsSetup 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


Game Reward Logic

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);
 }
}

About

To send rewards from unity webGL to Arena Web

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors