Skip to content

About

Show what you're working on in Unity directly in your Discord status! Perfect for VRChat avatar creators.

Resources

Stars

7 stars

Watchers

0 watching

Forks

Latest commit

 

History

36 Commits

Folders and files

Repository files navigation

Discord RPC Logo

Unity Editor Discord Rich Presence

Show your Unity development activity on Discord

Version Unity License

Installation • Features • Settings • Discord


Discord Rich Presence Example

Show off what you're working on in real-time

Features

  • Live Activity Updates - Shows your current project, scene, and selected object
  • Session Tracking - Displays how long you've been working
  • Smart Detection
    • Play/Edit mode
    • Scene changes
    • GameObject selection
    • Material and mesh editing
    • Build and upload progress (VRChat SDK support)
  • Clickable Buttons - Add up to 2 custom buttons with links
  • Highly Customizable - Full settings window with live preview
  • Lightweight - Only 343KB, 100% managed C# code
  • Zero Configuration - Works out of the box

Installation

Via VPM (Recommended)

  1. Add Akryst's VPM repository:
    https://vpm.akryst.moe
    
  2. Install Unity Editor Discord Rich Presence from VCC

Manual Installation

  1. Open Unity Package Manager
  2. Click + → Add package from git URL
  3. Enter:
    https://github.com/Akryst/Unity-Discord-RPC.git
    

Quick Start

  1. Install the package using one of the methods above
  2. Open Discord (you can also start it after Unity)
  3. Open Unity - Rich Presence activates automatically
  4. That's it! Check your Discord profile
Settings Window

Customize everything in Window → Discord RPC Settings

Settings

Access settings via Window → Discord RPC Settings

Display Options

  • ☑️ Show Project Name - Display your project in Discord
  • ☑️ Show Scene Name - Display current scene
  • ☑️ Show Selected Object - Display selected GameObject/asset
  • Custom Project Name - Override default project name

Clickable Buttons

Add up to 2 buttons to your Discord status:

  • Button 1 - Default: "Add me on VCC" → VPM repository
  • Button 2 - Optional: Add GitHub, website, or custom link

Advanced

  • Update Interval - How often to update Discord (1-10 seconds)
  • Auto-reconnect - Reconnect if Discord restarts
  • Debug Logging - Show detailed logs in Console

Status Indicator

  • 🟢 Green - Connected to Discord
  • 🔴 Red - Disconnected (Discord not running or connection failed)

Requirements

  • Unity 2019.4 or newer
  • Discord Desktop app (must be running)
  • Platforms: Windows, Linux

Troubleshooting

Status not appearing?

  1. Make sure the Discord desktop app is running
  2. Check Discord settings: User Settings → Activity Privacy → Display current activity ✓
  3. Wait 2-5 seconds for initial connection
  4. Check Unity Console for errors

Discord on Linux

  • IPC uses Unix domain sockets, including native Discord and the existing Flatpak/Snap socket locations.
  • Unity and Discord must run as the same user, with access to the same runtime directory.
  • The client checks XDG_RUNTIME_DIR, /run/user/<effective-uid> on Linux, TMPDIR, TMP, TEMP, and /tmp, and retries when Discord is unavailable. This also covers desktop launchers that omit XDG_RUNTIME_DIR.
  • Sandboxed installations still need permission to access the Discord IPC socket. The package does not change sandbox permissions.
  • The connection indicator turns green after Discord completes the RPC handshake.

Discord IPC is unavailable

  • Open the Discord desktop app; the browser version does not provide a local IPC connection.
  • Open Window → Discord RPC Settings, enable Debug Logging, and click Apply Settings. The next connection attempt logs the attempted pipe/socket paths and their failure reasons.
  • On Linux, check that Unity can access Discord's socket; on Windows, run both applications as the same user.

Changelog

See CHANGELOG.md for full release history.

v2.0.0 Highlights

  • 98% smaller - Migrated to lightweight discord-rpc-csharp library
  • Settings window - Full customization UI
  • Selected object detection - Shows what you're editing
  • Clickable buttons - Add custom links
  • Memory leak fixes - Better thread safety and cleanup

Contributing

Found a bug or have a feature request?

License

MIT License - See LICENSE.md

Credits

This package uses discord-rpc-csharp by Lachee for Discord Rich Presence communication.

Links


Made with ❤️ by Akryst

Perfect for VRChat creators and Unity developers

About

Show what you're working on in Unity directly in your Discord status! Perfect for VRChat avatar creators.

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages