This sample project demonstrates an integration between Beamable and Edgegap that allows deploying a server hosted on Edgegap through Beamable C# MS.
- Unity Target - PC
- Unity Version - 2022.3.11f1
- Beamable SDK version - 1.19.21
- Docker Desktop - https://www.docker.com/products/docker-desktop/
README.md- This README fileAssets/- Core files of the projectAssets/Scripts/Edgegap- Contains all the game scripts that are communicating with the C# MSAssets/Beamable/Microservices/EdgegapService- Contains all the C# microservices classes that communicate with Edgegap API
-
Assets/Beamable/Microservices/EdgegapService/EdgegapAPIInterface.cs- This is the class that communicates with Edgegap API -
Assets/Beamable/Microservices/EdgegapService/EdgegapService.cs- The main C# microservice that acts as a wrapper between the microservice and Edgegap interface -
Assets/Beamable/Microservices/EdgegapService/EdgegapConfiguration.cs- Configuration file for edgegap server -
Assets/Scripts/Edgegap/Edgegap Manager/EdgegapManager.cs- Acts as an interface between the game scripts and the C# microservices -
Assets/Scripts/Edgegap/Edgegap Server/EdgegapServerAPIInterface.cs- Used to make calls to the Edgegapi API from the deployed server itself
- Clone the repository locally and open the scene
EdgeGapExampleSceneinside ofAssets/Scenes/ - Login with your beamable account in Unity: https://docs.beamable.com/docs/unity-editor-login
- Choose the realm that you want to work on.
- Build and push your server using Edegap unity plugin (included in the project) : https://edgegap.com/integration/unity-plugin-quickstart
- Open
Assets/Beamable/Microservices/EdgegapService/EdgegapConfiguration.csfile and put your Edgegap configurations there : the app name and app version (you can get them from Edgegap portal) - Add Edgegap API token into the realm configuration, under the namespace "edgegap" and key value "apiToken", check here how to edit the realm configuration from Beamable portal : https://docs.venly.io/docs/configure-realm-config
- Make sure that you have docker setup and running on your PC.
- Run
Edgegap ServiceMicroservice, Check here how to run a microservice: https://docs.beamable.com/docs/microservices-guide - Run the
EdgeGapExampleScene, which containsEdegapExample.csscript, it will automatically deploy a server and print its IP and external Port
Beamable is the low-code option for rapidly adding social, commerce, and content management features to your live game. Learn how to do that with Beamable's online product documentation.
Let us know what you think or ask any questions you might have.