Copy discord-rpc-osx/osx-dynamic/lib/libdiscord-rpc.dylib to Assets/Plugins/.Click on both DLLs and make sure they are targetting the correct architectures in the Unity editor properties pane.Copy discord-rpc-win/win32-dynamic/bin/discord-rpc.dll to Assets/Plugins/x86/.Copy discord-rpc-win/win64-dynamic/bin/discord-rpc.dll to Assets/Plugins/x86_64/.Create x86 and x86_64 folders inside Assets/Plugins/.We've got our Plugins folder ready, so let's get platform-specific! Windows This is basically your header file for the SDK Copy the file DiscordRpc.cs from here into your Assets folder.In your Unity project, create a Plugins folder inside your Assets folder if you don't already have one.Download the DLLs for any platform that you need from our releases.If you're a Unity developer looking to integrate Rich Presence into your game, follow this simple guide to get started towards success: Copy libdiscord-rpc.so from /linux-dynamic/lib to Linux/x86_64-unknown-linux-gnu.Inside, create another folder x86_64-unknown-linux-gnu.At /Plugins/discordrpc/source/ThirdParty/DiscordRpcLibrary/, create a Linux folder.Copy libdiscord-rpc.dylib from /osx-dynamic/lib to the Mac folder.At /Plugins/discordrpc/source/ThirdParty/DiscordRpcLibrary/, create a Mac folder.Copy lib/discord-rpc.lib and bin/discord-rpc.dll from /win64-dynamic to the Win64 folder.At /Plugins/discordrpc/source/ThirdParty/DiscordRpcLibrary/, create a Win64 folder.Launch the editor, and enable the Discord plugin.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |