Import and Set up
1.Install SynicSugar and depended librarys.
The first is to import SynicSugar and dependent libraries. You can get SynicSugar from OpenUPM or SynicSugar/Release's unitypackage.
.unitypackage contains Mono.Cecil and System.Runtime.CompilerServices.Unsafe.dll for MemoryPack and, in addition to SynicSugar. Therefore, you can skip some processes, but it is more convenient to download via OpenUPM for version control.
- Rigister some package with OpenUPM
In your unity project, select Edit/ProjectSetting/PackageManager. Then, register some librarys.
Name: OpenUPM
URL: https://package.openupm.com
Scope(s):
- net.skeyll.synicsugar (Skip if downloading as unitypackage)
- com.cysharp.unitask
- com.playeveryware.eos
- com.cysharp.memorypack
- Install these packages
These packages can be imported from Window/PackageManager/MyRegistries. Importing SynicSugar will automatically import the other required librarys. If you are using another version in your project, that one will probably work. However, SynicSugar has been developed using the following:
- Epic Online Services Plugin for Unity: 2.2.0
- UniTask: 2.3.3
- MemoryPack: 1.9.13
- Import the rest (Skip if downloading as unitypackage.)
Import what is not in OpenUPM.
- Mono.Cecil
Enter com.unity.nuget.mono-cecil in Edit/ProjectSetting/PackageManager/+/Add package from git URL.
- System.Runtime.CompilerServices.Unsafe
MemoryPack need System.Runtime.CompilerServices.Unsafe.dll. You can get this dll from Download package in https://www.nuget.org/packages/System.Runtime.CompilerServices.Unsafe/6.0.0 . Since this contains DLLs for multiple environments, only import packages for Unity. Unzip the downloaded file and drag and drop lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll into your project.
2.Get some tokens for EOS.
Please check the eos document or the plugin page. SynicSugar doesn't need EOS store brand. Just register and can use server.
About app credential, you can use Peer2Peer as ClientPolicy. The minimum is as follows.