Mirror Pong
Explore how to host Unity projects on Edgegap using techniques from the Mirror Pong Sample.
✔️ Preparation
Before we start, you will need:
Unity 6 - download using Unity Hub,
Mirror Unity package - download from Unity Asset Store,
this package includes the Pong sample.
Create a new project and import the Mirror package above.
⚡ Deploy and Connect
1. Deploy a Server on Edgegap
☑️ To get started, you'll need to create a free account with Edgegap. No credit card required.
☑️ Create a new app version for your application, choose Mirror Pong Sample.
☑️ Deploy a server with your Mirror Pong Sample app version.
☑️ Open your new deployment's details.
☑️ Find your deployment's unique, one-time connection details:
Host URL in format
780aa4260e83.pr.edgegap.net
,External Port in format
30854
(5 digits).
✅ You may now proceed to the next step.
2. Connect from Editor
☑️ Open your new project in Unity.
☑️ Open scene in folder Mirror / Examples / Pong / Scenes / MirrorPong.unity.
☑️ Press the ▶️ Play button to start your game client.
☑️ Input connection details from previous step.
☑️ Press Client button to connect to your server.
☑️ Connect a second virtual Player with Multiplayer Play Mode or ParrelSync.
🙌 Congratulations on your first Deployment on Edgegap!
✏️ Customize Server Build
See Getting Started - Servers for Unity to learn how to build and customize servers.
Last updated
Was this helpful?