-
Notifications
You must be signed in to change notification settings - Fork 0
Home
github-actions[bot] edited this page May 1, 2026
·
4 revisions
DxMessaging is a high-performance, type-safe messaging library for Unity that provides a clean, decoupled communication pattern between game components.
Getting-Started | View on GitHub
- High Performance -- Zero-allocation message dispatch with pooled handlers
- Type-Safe -- Compile-time message type checking prevents runtime errors
- Decoupled Architecture -- Components communicate without direct references
- Flexible Targeting -- Untargeted, Targeted, and Broadcast message patterns
- Unity-Native -- Built specifically for Unity with MonoBehaviour integration
- Concepts-Mental-Model -- How to think about DxMessaging
- Getting-Started-Visual-Guide -- Beginner-friendly introduction with diagrams
- Getting-Started-Quick-Start -- Your first message in 5 minutes
- Concepts-Message-Types -- Untargeted, Targeted, Broadcast patterns
- Reference-Reference -- Complete API documentation
openupm add com.wallstop-studios.dxmessaginghttps://github.com/wallstop/DxMessaging.git
See the Getting-Started-Install for all options including NPM scoped registries and local tarballs.
// Define a message
public readonly struct DamageMessage : IUntargetedMessage
{
public readonly int amount;
public DamageMessage(int amount) => this.amount = amount;
}
// Subscribe and handle (using a MessageRegistrationToken)
_ = Token.RegisterUntargeted<DamageMessage>(msg =>
Debug.Log($"Received {msg.amount} damage!"));
// Emit the message
DamageMessage damage = new DamageMessage(25);
damage.EmitUntargeted();- Getting-Started-Overview
- Getting-Started-Getting-Started
- Getting-Started-Install
- Getting-Started-Quick-Start
- Getting-Started-Visual-Guide
- Concepts-Message-Types
- Concepts-Listening-Patterns
- Concepts-Targeting-And-Context
- Concepts-Interceptors-And-Ordering
- Guides-Patterns
- Guides-Unity-Integration
- Guides-Testing
- Guides-Diagnostics
- Guides-Advanced
- Guides-Migration-Guide
- Advanced-Emit-Shorthands
- Advanced-Message-Bus-Providers
- Advanced-Runtime-Configuration
- Advanced-String-Messages
- Reference-Reference
- Reference-Quick-Reference
- Reference-Helpers
- Reference-Faq
- Reference-Glossary
- Reference-Troubleshooting
- Reference-Compatibility
Links