Discord Rich Presence
Implements the RPC Protocol for discord using Discord RPC CSharp
com.lachee.discordrpc Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/discordrpc.git README Markdown
Copy this to your project's README.md
## Installation
Add **Discord Rich Presence** to your Unity project via Package Manager:
1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/discordrpc.git
```
[](https://www.pkglnk.dev/pkg/discordrpc)Dependencies (1)
README
|
Discord RPC Unity
|
Usage
Add the package to your project and look at the sample code. For more documentation about the RPC, check the discord-rpc-csharp documentation
Check out the documentation at https://lachee.github.io/discord-rpc-unity/
Dependencies
At least Unity 2018, however:
- Support is only given down to Unity 2018.4.36f1 LTS
- Support is only given up to the latest LTS
Newtonsoft.JSON 13
- This is provided by com.unity.nuget.newtonsoft-json
- this determines the 2018.4 min spec. You can go lower, but you need to supply your own newtonsoft.json 13.0 binary.
Installation
OpenUPM 
The openupm registry is a open source package manager for Unity and provides the openupm-cli to manage your dependencies.
openupm add com.lachee.discordrpc
Manual UPM 
Use the Unity Package Manager to add a git package. Adding the git to your UPM will limit updates as Unity will not track versioning on git projects (even though they totally could with tags).
- Open the Unity Package Manager and
Add Package by git URL... https://github.com/Lachee/discord-rpc-unity.git
For local editable versions, manually clone the repo into your package folder. Note the exact spelling on destination name.
git clone https://github.com/Lachee/discord-rpc-unity.git Packages/com.lachee.discordrpc
Unity Package
Go old school and download the Unity Package and import it into your project.
- Download the
.unitypackagefrom the Releases or via the last runCreate Releaseaction. - Import that package into your Unity3D
Logging
By default, the DiscordManager will log to the Unity Console while in the Editor. To enable logging in builds, create a Development Build and a new discordrpc.log file will be generated with your app when it runs.
Licensing
The license is MIT so do what you want;
However, i do appriciate attributations where possible and a link. Also if you plan to "fix" the library and sell it, please contribute back to this project with your fixes so others can benifit too.
No comments yet. Be the first!