TemplatesDiscord activities
Unity
A Discord Activity template for Unity games.
Unity
Build Discord Activities with the Unity game engine. This template provides the integration layer between Unity WebGL builds and Discord's Embedded App SDK.
Getting Started
Create a project with this template:
npx create-robo@next <project-name> --template discord-activities/unityThen navigate into your project directory:
cd <project-name>Run development mode:
npm run devUnity Setup
- Create your Unity project separately
- Configure it for WebGL build target
- Build and copy the output to
/public/unity - The Robo.js wrapper handles Discord SDK integration
.env
Discord SDK Integration
The template includes JavaScript bridge code that:
- Initializes the Discord SDK
- Handles authentication
- Passes user/guild data to Unity
- Manages activity lifecycle events
Hosting
npm run deployRoboPlay
Deploy with as little as one command.
Self-Hosting
Learn how to host and maintain it yourself.
