TUTOUNITYFR / Rich-Presence-Discord-Unity3D

Projet exemple d'utilisation de Rich Presence (Discord) dans Unity 3D.
27 stars 3 forks source link

Works for Unity Editor, but not IL2CPP Windows #3

Open cryptogrounds opened 3 years ago

cryptogrounds commented 3 years ago

Not sure if this will ever be seen but I will give it a shot:

NotSupportedException: IL2CPP does not support marshaling delegates that point to instance methods to native code. The method we're attempting to marshal is: DiscordPresence.PresenceManager::ReadyCallback
  at DiscordPresence.DiscordRpc.Initialize (System.String applicationId, DiscordPresence.DiscordRpc+EventHandlers& handlers, System.Boolean autoRegister, System.String optionalSteamId) [0x00000] in <00000000000000000000000000000000>:0 
  at DiscordPresence.PresenceManager.OnEnable () [0x00000] in <00000000000000000000000000000000>:0