此问题实际上没有包含任何代码...
我将Discord SDK添加到了我的项目中,每次运行游戏时,它都会关闭Unity编辑器。有没有一种方法可以阻止Discord SDK终止编辑器?
@ EliasV,您试图在编辑器中启动游戏时需要运行Discord应用程序。
/*
Grab that Client ID from earlier
Discord.CreateFlags.Default will require Discord to be running for the game to work
If Discord is not running, it will:
1. Close your game
2. Open Discord
3. Attempt to re-open your game
Step 3 will fail when running directly from the Unity editor
Therefore, always keep Discord running during tests, or use Discord.CreateFlags.NoRequireDiscord
*/
https://discord.com/developers/docs/game-sdk/sdk-starter-guide