Lachee / discord-rpc-unity

C# custom implementation for Discord Rich Presence. Unity package to easy add to your own games.
MIT License
43 stars 2 forks source link

Investigate if IL2CPP will work #8

Closed Lachee closed 2 years ago

Lachee commented 5 years ago

Issue 243 in the official library mentions Unity 2018.2 using IL2CPP for all windows builds.

Its needs to be investigated if this will affect this library, or if it only affects callbacks from native libraries (which this one does not use).

It also should be looked into if the latest version of Unity3D can skip the native library wrapper all together and if they have fixed the NamedPipeClient provided by C#. If it does support this, a small check can be included to only use the native library for older versions of unity.

dylanh724 commented 5 years ago

https://forum.unity.com/threads/monopinvokecallback-in-unity.132510/ ^ This thread says you don't even need that attribute. I'm going to test it shortly.

EDIT: Nope, that didn't work ;p

Lachee commented 2 years ago

It does work.