![](images/eos_plugin_logo.png)
Epic Online Services Plugin for Unity (UPM package)
Overview
The eos_plugin_for_unity_upm repository contains a Unity Package Manager (UPM) plugin for enabling the use of the Epic Online Services (EOS) C# SDK in Unity.
For support issues or contributing to this open source project, head over to the source repository.
Highlights
- Unity GUI tool for configuring EOS product settings, saved out to a JSON file.
- Unity editor playback support, handled by reloading the EOS SDK on the fly.
- Easy to use manager classes that handle common EOS API use-cases.
- Straightforward sample Unity scene templates to get you started.
- EOS Social Overlay support.
- Includes EOS SDK 1.15.4.
- Targets Unity 2021.3.8f1.
Supported Platforms
The follow target platforms are supported in Unity for the current release of the EOS Unity Plugin.
Unity Target Platform | Current Plugin Release |
---|---|
Unity Editor | Supported (No Social Overlay) |
Windows Standalone x64 | Supported |
Windows Standalone x86 | Supported |
Universal Windows Platform x64 | Supported |
Android | Supported (No Social Overlay) |
iOS | Supported (No Social Overlay) |
Linux | Supported (No Social Overlay) |
MacOS | Supported (No Social Overlay) |
Console Platforms | Future |
WebGL | Not Supported |
Universal Windows Platform x86 | Not Supported |
Unity Web Player | Not Supported |
Supported EOS SDK Features
As the EOS SDK continues releasing new features and functionality, the EOS Unity Plugin will be updated over time to support the new functionality. Here's the current list of EOS SDK features and their level of support in the EOS Unity Plugin:
EOS SDK Feature | Included in Sample |
---|---|
Achievements | Achievements Sample |
Authentication | - All Samples - |
Ecommerce | Store Sample |
Friends | Auth & Friends Sample |
Leaderboards | Leaderboards Sample |
Lobby | Lobbies Sample |
Lobby with Voice | Lobbies Sample |
NAT P2P | P2P Sample |
Player Data Storage | Player Data Storage Sample |
Presence | Auth & Friends Sample |
Sessions | Sessions Sample |
Social Overlay | - All Samples - |
Stats | Leaderboards Sample |
Title Storage | Title Storage Sample |
Reports | Player Reports & Sanctions Sample |
Sanctions | Player Reports & Sanctions Sample |
Anti-Cheat | Not Supported |
EOS Mod SDK | Future |
Voice Trusted Server | Not Supported |
Integration Notes
For best results, Unity 2021.3.8 is preferred.
Installing from a git URL
Ensure you have property setup Unity for Git Dependency.
Make sure you have git and git-lfs installed.
Open the Unity Editor.
Open the Package Manager.
- It's listed under
Window -> Package Manager
.
- It's listed under
Click the
+
button.Select '
Add Package from Git URL
'.Paste in
git@github.com:PlayEveryWare/eos_plugin_for_unity_upm.git
orhttps://github.com/PlayEveryWare/eos_plugin_for_unity_upm.git
.
Installing from a tarball
Download the latest release tarball from https://github.com/PlayEveryWare/eos_plugin_for_unity/releases
From the Unity Editor, open the Package Manager.
- It's listed under
Window -> Package Manager
.
- It's listed under
Click the
+
button.Select '
Add package from tarball
'.Go to directory containing the EOS Unity Plugin tarball, and select it.
Click
Open
.
Configuring the Plugin
In order for your Unity project to use EOS, the plugin must first know a few things about it...
Prerequisites
- A Unity project to integrate the EOS Unity Plugin into.
- An Epic Games Account, which you may sign up for here.
- Accepted Terms of Service for Epic Online Services.
- An EOS Product config, set up in your Epic Games Developer Portal.
Steps
Open your Unity project with the integrated EOS Unity Plugin.
In the Unity editor, Open
Tools -> EpicOnlineServicesConfigEditor
.Configure the EOS Unity Plugin.
From the developer portal, copy the configuration values listed below, and paste them into the similarly named fields in the editor tool:
- ProductName
- ProductVersion
- ProductID
- SandboxID
- DeploymentID
- ClientSecret
- ClientID
- EncryptionKey
At this point, you are ready to start developing using the Epic Online Services Plugin for Unity! Simply attach EOSManager.cs (Script)
to a Unity object and it will intialize the plugin with the specified configuration in OnAwake()
.
If you would like to see specific examples of various EOS features in action, import the sample Unity scenes below.
Samples
The included samples show fully functional feature implemenation that will both help with EOS integration as well as validate client to dev portal configuration. After installing the samples from the UPM package, you will find scenes for each major feature.
![Lobby Screenshot](images/sample_screen_lobby.gif)
![Title Storage Screenshot](images/sample_screen_titlestorage.gif)
In addition, the samples include Unity friendly feature Managers that can help to quickly integrate new EOS features into your title. They provide functional usage of the main feature functionality and can be a good base template.
Installing the samples
To use the samples, install them from the UPM manager.
The samples include both usage of the EOS SDK, and convience wrappers to make using the SDK more ergonomic in the Unity game engine. By being samples in the UPM sense, they are placed under Assets which allows modification.
Running the samples
Launch Unity project with the samples installed.
In the Unity editor, hit
Play
.Login with a selected authentication type.
Authentication
Running and Configuring the EOS SDK Dev Auth Tool
Launch the Developer Authentication Tool
Pick a port to use on the computer. 8888 is a good quick to type number that isn't usually used by a process.
Log in with one's user credentials that are registered with Epic.
Pick a username. This username will be used in the sample to log in.
More specific and up-to-date instructions can also be found on Epic's website.
Open Source: Contribute
This is an Open Source project. If you would like to view and contribute to the development of the EOS Unity Plugin, you can enlist in the development repo located at https://github.com/PlayEveryWare/eos_plugin_for_unity
Plugin Support
EOS Plugin for Unity API Documentation can be found at https://eospluginforunity.playeveryware.com
For issues related to integration or usage of the Unity plugin, please create a New Issue
under the Issues tab of the main repo.
For issues related to Epic Online Services SDK, Epic Dev Portal or general EOS SDK information, please go to Epic Online Services Community Support.
Detailed descriptions and usage for EOS SDK Interfaces, can be found at EOS Developer Documentation: Game Services.