For the actual code -> Hop to /Vanilla-EOS-Unity/Assets/_Scripts/EOS here.
- This package was for when EOS first came out when it was lacking native Unity support, as a "just works" package.
- Although deprecated, as the 1st public Unity implementation, many still use this as a schema / template to demonstrate how to properly implement EOS.
- Cheers for the interest in my repo -- feel free to add me to your LinkedIn network @ https://i42.quest/linkedin 🍻
- From the official Online Multiplayer BaaS Discord Community @ https://i42.quest/baas via #eos-unity
- Unofficial EOS Unity implementation that "just works" out of the box.
- Vanilla backend implementation of the working EOS C# SDK architecture >> init >> tick >> create >> login.
- I went through the trial + error so you don't have to!
- Tested in Unity 2020 with .NET 4.x scripting level
- Currently utilizing the 64-bit Windows DLL: If you have 32-bit support, feel free to throw that alongside the 64-bit one from the SDK zip (not included within this project).
- In the link above, also note the "platform define symbols": If you don't, I'll see you in the Troubleshooting section below, later ;)
- Don't forget to UPDATE your SDK! Just extract it using the same schema/architecture.
- Apparently (for new accounts only...?), some users only see 1 sandbox secret: Just use "live", in that case. Don't forget to change your EOSMgr component's 'SandboxStage' dropdown to 'Live', in that case (default==dev).
- You should probably familiarize yourself with the init flow @ https://dev.epicgames.com/docs/services/en-US/CSharp/GettingStarted/index.html
- Login to https://dev.epicgames.com/portal/
- You need to prepare 7 secrets and can be obscure to find:
- Create product
- Click game on left
- Product settings @ top-right.
- At the bottom, you must click an obscure link to an additional Terms of Service you need to accept before all clients will display (at the bottom >> "Client Details"):
- Prepare secrets:
- Product ID @ top under "General Information" | https://i.imgur.com/5lagSOf.png
- 3x Sandbox IDs under "Sandboxes" for Live, Dev, and Staging | https://i.imgur.com/flChkFj.png
- Beside 1 sandbox (probably Dev) under "Deployments" btn >> Create new deployment | https://i.imgur.com/pyNjjcQ.png
- "Client Credentials" >> "New Client" btn @ bottom | https://i.imgur.com/PWrJ9I7.png
- Open project within Unity >> 'Yes' to auto-convert to your Unity version, if asked.
- Swap out secret placeholders @
/_Scripts/EOS/EOSInit.cs(at the top): - Open StartScene >> Configure your
SandboxStage: - Press Play >> Watch console and notice a portal login popup in default browser.
- Notice your EOS dev portal ( https://dev.epicgames.com/portal ) analytics section starting to fill with data!
-
NOT using 64-bit editor/standalone? Go back to Instructions #1's link and scroll down to "Unity Integration" regarding Platform Define Symbols -- you'll need to change something.
-
DLLNotFound Error? Same issue as #1: If you'are on 64-bit but still get this error, did you copy+paste this template to your own project? *Don't forget to add those definition symbols within the instructional link from #1!
-
ResultCode==UnexpectedError This is an Epic unhandled err for most-likely saying you messed up your keys. See instruction #3 for swapping out secret placeholders.
This near-vanilla project does require 1 lib due to lack of time when minimizing from my own project:
More-Effective Coroutines (MEC), which is free and already included within the project @ 1. More-Effective Coroutines (MEC) by Trinary Software (FREE) @ https://assetstore.unity.com/packages/tools/animation/more-effective-coroutines-free-54975
This basically just utilizes .WaitUntilDone() and .cancelWith() yield features. Feel free to add a push request just adding normal coroutines for the crazies that still use Unity's native [lacking] coroutines ;) for the sake of being minimal, anyway.
- How about a fork that includes friends lists?
- How about a fork that focuses on analytics events?
- How about some ultra-friendly wrapper that combines EVERYTHING together?
- Let's see what you come up with!
- Let's network! https://www.linkedin.com/in/dylanhuntdev
- Happy with what you see? Buy me a beer by supporting my game, Throne of Lies: The Online Game of Deceit (on Steam). --Xblade




