discord-rpc-csharp
discord-rpc-csharp copied to clipboard
[BUG] RPC only works in editor, not in build.
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:
- Build for Windows x86_64, IL2CPP, .NET 4.x
- 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.