RobProductions / OpenEOS

A lightweight & open-source port of the Epic Online Services (EOS) SDK in Unity Package format, with simple extensions that provide a smoother integration within Unity.
MIT License
9 stars 1 forks source link

Disable EOS SDK at compile time #12

Closed georg-walkingtreegames closed 2 days ago

georg-walkingtreegames commented 4 months ago

Is is possible to disable OpenEOS at compile time with a scripting defines symbol?

The eos_plugin_for_unity does it using EOS_DISABLE and I think it would be nice to have this feature in here as well.

Searching for EOS_DISABLE in the eos_plugin_for_unity also indicates, that it can be done in a not very invasive way.

MadScientist11 commented 2 days ago

+1 on this, that would be great

RobProductions commented 2 days ago

Apologies for the slow response, this ended up being easier to implement than I thought :') I just pushed out a new update with the scripting define EOS_DISABLE added to assembly definition constraints, so you should be able to use that to stop the SDK and OpenEOS library from being compiled in your project. Note that since you're expected to create your own manager to interact with either of these, you will have to check for EOS_DISABLE wherever you import or interact with the package.

Feel free to check out version 2.1.0-1.16.1 and let me know if it works for you! If there's anything that doesn't work as expected feel free to let me know and I can reopen the issue to address problems, thanks!