Edgegap Matchmaking SDK
Get started quickly with Edgegap Matchmaking Matchmaking.
com.edgegap.unity-matchmaking-sdk 
Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/unity-matchmaking-sdk.git README Markdown
Copy this to your project's README.md
## Installation
Add **Edgegap Matchmaking SDK** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/unity-matchmaking-sdk.git
```
[](https://www.pkglnk.dev/pkg/unity-matchmaking-sdk)Dependencies (1)
README
Edgegap Unity Matchmaking SDK
Follow our Getting Started guide first, then explore our Matchmaking Scenarios for inspiration.
This plugin has been tested, and supports Unity versions 2021.3.0f1+, including all LTS releases, and Unity 6.
This plugin is intended to simplify integration of Matchmaking through pre-defined set of SDK methods and example client & server runtime handler scripts.
Install With Git (recommended)
Benefits
- Installing our plugin this way will ensure you get the freshest updates the moment they come out, see the update guide.
Caveats
- Requirement: functioning git client installed, for example git-scm.
Instructions
- Open your Unity project,
- Select toolbar option Window -> Package Manager,
- Click the + icon and select Add package from git URL...,
- Input the following URL:
https://github.com/edgegap/edgegap-unity-matchmaking-sdk.git
- Click Add and wait for the Unity Package Manager to complete the installation.
Install via ZIP archive
Benefits
- Slightly easier as no git client is required.
Caveats
- Installing our plugin this way will require you to manually replace plugin contents if you wish to update it,
- The newtonsoft package (dependency) version required may not be compatible with your project if you're already using an older version of this package.
Instructions
- Select toolbar option Window -> Package Manager,
- Click the + icon and select Add package by name...,
- Input this name and wait for the Unity Package Manager to complete the installation:
com.unity.nuget.newtonsoft-json
- Back to this github project - make sure you're on the
mainbranch, - Click <> Code, then Download ZIP,
- Paste the contents of the unzipped archive in your
Assetsfolder within Unity project root.
Other Sources
This is the only official distribution channel for this SDK, do not trust unverified sources!
Plugin Usage
Follow our Getting Started guide first, then explore our Matchmaking Scenarios for inspiration.
Import Simple Example
- Find this package in Unity Package Manager window.
- Open the
Samplestab. - Click on Import next to Simple Example.
- Locate sample files in your project
Assets/Samples/Edgegap Matchmaking SDK/{version}/Simple Example. - Create an Empty GameObject in your scene and attach
MatchmakingClientHandlerExample.csscript. - Configure
BaseUrlandAuthTokenvalues from dashboard.
Usage Requirements
To take full advantage of our Unity Matchmaking service, you will need to Create an Edgegap Free Tier account. Our Free Tier let's you test and explore all of Matchmaking features for free, no credit card required!
Troubleshooting
Unity Editor shows
[Package Manager Window] Error adding package: https://github.com/edgegap/edgegap-unity-matchmaking-sdk.git
- If you’re adding our plugin via git URL, you will need to have a git client installed.
Unity Editor 2021 shows
failed to resolve assembly: 'Edgegap.Matchmaking.SDK...
- This is a known issue when using plugin with Unity's Burst compiler.
- Install plugin via ZIP archive and delete
EdgegapMatchmakingSDK.asmdefin the plugin folder to resolve this.
Visual Studio shows
type or namespace name could not be foundfor Edgegap namespace.
- In your Unity Editor, navigate to Edit / Preferences / External Tools / Generate .csproj files.
- Make sure you have enabled Git packages.
- Click Regenerate project files.
Update the Plugin in Unity
Before updating, take note of your Client Version property on MatchmakingClient.cs to ensure future compatibility.
Depending on your installation method:
- If you installed with git, locate it in Unity's Package Manager window and click Update. Wait for the process to complete and you're good to go!
- If you installed via ZIP archive, you will need to remove the previous copy, then download the new version.
Migrating Scenes
Replace any missing scripts in your scenes!
- Verify validity of your
MatchmakingClient.csproperties likeBaseUrlandAuthToken.
- Verify validity of your
Increase
Client Versionproperty value of yourMatchmakingClient.csscript!- This will prevent loading outdated tickets from cache when matchmaking resumed.
You may want to modify your client & server handler scripts.
For Plugin Developers
This section is only for developers working on this plugin or other plugins interacting / integrating this plugin.
CSharpier Code Frmatter
This project uses CSharpier code formatter to ensure consistent and readable formatting, configured in /.config/dotnet-tools.json.
See Editor integration for Visual Studio extensions, optionally configure Reformat with CSharpier on Save under Tools | Options | CSharpier | General. You may also configure running formatting as a pre-commit git hook.
Comments
No comments yet. Be the first!
Sign in to join the conversation
Sign In