Skip to content

AgoraIO-Community/Agora_Unity_Space2

Repository files navigation

Agora Space 2

This demo combines the features of Agora RTC SDK and Signaling SDK to enable multiplayer interaction within a 3D Unity space. The project is an rewrite of the previous Agora_Unity_Space. The main difference is that previous version leverages Mirror SDK as synchronize remote objects. Also, it requires a saparate server or a player serves as both client and server node. In this implementation, the Agora Signaling SDK takes care of the transform synchronization and we don't require a separate server node anymore.

Sample Scene

space2-cut.mp4

Developer Environment Prerequisites

  • Unity3d 2021.3 LTS
  • Agora Developer Account
  • Agora Video SDK (Version 4.3.1 or newer)
  • Agora Signaling SDK (version 2.1.9 or newer)

Quick Start

This section shows you how to prepare, build, and run the sample application.

Obtain an App ID

To build and run the sample application, get an App ID:

  1. Create a developer account at agora.io. Once you finish the signup process, you will be redirected to the Dashboard.

  2. Navigate in Agora Console on the left to Projects > More > Create > Create New Project.

  3. Save the App ID from the Dashboard for later use.

Run the Application

Build for desktop

  1. Clone this repo and open the project from this folder

  2. Download the latest RTC SDK and Signaling SDK (aka RTM SDK)

  3. Fill in App ID and Token (if enabled) Game_-_AppID

  4. Make sure if your AppID has token or not. Things won't work if you don't supply a token if your AppID requires one. We recommend use an AppID for testing first before applying token logic.

  5. Make a build and run it with the Editor

License

The MIT License (MIT).