FakeByte / EpicOnlineTransport

A Transport for Mirror using Epic Online Services
MIT License
252 stars 52 forks source link

Absolute file path for libraryPath in EOSSDKComponent.cs #25

Open Molder72 opened 2 years ago

Molder72 commented 2 years ago

in order to create a unity package I need that this path is absolute, in this way can its work when is place in Asset folder, and in my case when move in Packages folder.

please, in file EOSSDKComponent.cs

add in line 7 using System.IO;

overwrite line 211 from
var libraryPath = "Assets/Mirror/Runtime/Transport/EpicOnlineTransport/EOSSDK/" + Config.LibraryName; To var libraryPath = Path.GetFullPath(Path.Combine("Packages/vis2k.mirror/Runtime/Transport/EpicOnlineTransport/EOSSDK/", Config.LibraryName));

thank you