discord-rpc-unity icon indicating copy to clipboard operation
discord-rpc-unity copied to clipboard

[BUG] RPC only works in editor, not in build.

Open cryptogrounds opened this issue 2 years ago • 11 comments

Describe the bug Seems to work just fine in the Editor. However, on build, it fails to get past the "[DRP] Discord Rich Presence intialized and connecting..." phase.

To Reproduce Steps to reproduce the behavior:

  1. Build for Windows x86_64, IL2CPP, .NET 4.x
  2. Run the .exe, doesn't show up on Discord.

Expected behavior The RPC should show up on Discord like it does when I run it in the editor.

Desktop (please complete the following information):

  • OS: Win 10
  • Framework: Unity 2020 .NET 4.x
  • Library Version: Lastest

Additional context Regardless of the .dlls being in the Assets/Plugins folder or where they originally were when I imported the asset, it doesn't change the result.

Logs

[DRP] Starting Discord Rich Presence
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
DiscordManager:Initialize()

[DRP] Discord Rich Presence intialized and connecting...
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:Log(Object)
DiscordManager:Initialize()
// Doesn't get past here.

cryptogrounds avatar Jun 02 '22 18:06 cryptogrounds