Skip to content

unitycoder/Discord-Unity-6-Presence

 
 

Repository files navigation

Discord-Unity-6-Presence-

A Discord Unity Presence to show you'r useing Unity Engine on Your Discord Profile

A lightweight Windows C# console application that displays custom Discord Rich Presence when the Unity Editor is running. It automatically detects the active Unity project and updates the presence with real-time project details.

Features

  • Detects if Unity Editor is running
  • Extracts the currently open Unity project name from:
    • The Unity Editor window title, or
    • Unity's RecentlyUsedAssetPaths.txt metadata
  • Displays detailed Rich Presence in Discord, including:
    • Current project name
    • Custom images (e.g., Unity logo)
    • Timestamp (when app started)
    • Button linking to GitHub or any external site
  • Automatically clears the presence when Unity is closed
  • Updates every 5 seconds

Example Display

image

Unity Editor
Editing: MyUnityProject
[Join] (button open!
s GitHub)

Requirements

Setup

Directly Run .Exe

download the release file and open Bin folder and the tun Unity Discoird Presene.exe
  1. Clone the repository

    git clone https://github.com/InboraStudio/Discord-Unity-6-Presence.git
    cd unity-discord-presence
  2. Open the solution in Visual Studio

  3. Install the NuGet package

    • Right-click the project → Manage NuGet Packages
    • Install: DiscordRPC by Lachee
  4. Add your Discord Application ID

    Replace the discordAppID in Program.cs:

    string discordAppID = "YOUR_DISCORD_APP_ID";
  5. Add your Rich Presence assets

    • Go to Discord Developer Portal
    • Upload image assets under Rich Presence > Art Assets
    • Use the keys (names) in LargeImageKey and SmallImageKey
  6. Build and run the executable

    • Press F5 or build it as a .exe
    • Leave it running in the background while using Unity

Customization

You can modify:

  • Button label and URL
  • Update frequency
  • Presence text styling
  • Additional logic (e.g., current scene detection)

Known Limitations

  • Only works on Windows
  • Unity project detection may be inaccurate if Unity is still loading or minimized
  • Requires Discord desktop client to be running

License

MIT License. See LICENSE for details.

Credits

  • Built using Lachee's DiscordRPC
  • Inspired by the need for better Unity activity tracking on Discord

About

A Discord Unity Presence to show you'r useing Unity Engine on Your Discord Profile

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%