mirror of
https://github.com/LouisRaverdy/DiscordRPC.git
synced 2025-10-22 16:04:21 +00:00
39 lines
1.7 KiB
Markdown
39 lines
1.7 KiB
Markdown
# Discord plugin for Unreal Engine 5
|
|
|
|
This plugin is designed for users of Unreal Engine 5. It will help you to create a discord presence for your game like this :
|
|
|
|

|
|
|
|
|
|
## Installation
|
|
|
|
1) Dowload this repostory
|
|
2) Extract the repo
|
|
3) Copy all content to your plugin project (YourProject/Plugins)
|
|
4) Make sure you are register on [Discord developer website](https://discord.com/developers/applications "Discord Developer Website")
|
|
5) Create your application and copy your Application ID
|
|
6) Open your project and enable the plugin
|
|
|
|
## Initialization
|
|
|
|
In order to establish a connection with the application you have created before and the discord app
|
|
You need to create something like this in your **Game Instance** :
|
|
|
|

|
|
|
|
> **Note :** Make sure your Game Instance is defined as default in the Project Settings. (Project Settings -> Maps & Modes -> Game Instance Class)
|
|
|
|
For remove your presence when you exit the game you need to add this to your **Game Instance** :
|
|
|
|

|
|
|
|
## Nodes
|
|
|
|
To update your presence for your game, you can use this code (read the image next to it to understand the fields of the node) :
|
|
|
|

|
|
|
|
> **Note :** To use image in rich presence you need to upload them on your Discord developer game page (Rich Presence -> Art Assets)
|
|
|
|
### **More advanced documentation coming soon.**
|