Repository navigation
Getting Started Install
Install DxMessaging into a Unity 2021.3+ project through Unity Package Manager (UPM) or from a classic asset package.
| Method | Command/URL | Update action |
|---|---|---|
| OpenUPM (Recommended) | openupm add com.wallstop-studios.dxmessaging |
Select a version in UPM |
| Git URL | https://github.com/Ambiguous-Interactive/DxMessaging.git |
Reinstall at a chosen revision |
| npm Scoped Registry | Add registry + resolve | Select a version in UPM |
| From Releases | Download .tgz or .unitypackage
|
Download and install a new release |
| From Source | Clone/download zip | Update the embedded checkout |
| Manual (not recommended) | Edit manifest.json | Edit the dependency in the manifest |
Registry installs expose available versions in Package Manager. To upgrade, select a version and apply the update as described in Unity's package update guide.
The easiest way to install DxMessaging is via OpenUPM.
If you have the OpenUPM CLI installed, run:
openupm add com.wallstop-studios.dxmessaging- Available versions and update controls in Unity Package Manager
- Easy dependency management
- Simple one-command installation
- Version history and changelogs available on the OpenUPM page
Don't want to install the CLI? You can also add OpenUPM as a scoped registry manually.
- Unity Package Manager > Add package from git URL...
- Paste:
https://github.com/Ambiguous-Interactive/DxMessaging.git
- Click Add. Unity imports the package and its analyzers/generators.
- Open Unity Package Manager
- Open the Advanced Package Settings
- Add an entry for a new "Scoped Registry"
- Name:
NPM - URL:
https://registry.npmjs.org - Scope(s):
com.wallstop-studios.dxmessaging
- Name:
- Resolve the latest
DxMessaging
Unity will notify you of version updates when using scoped registries.
Open the latest package release
and download the npm .tgz package or classic .unitypackage, plus its matching .sha256 checksum.
Verify the download with sha256sum -c <file>.sha256.
- For the
.tgz, open Window > Package Manager, click +, and choose Add package from tarball. Select the downloaded file. To copy a sample into your project, select DxMessaging, open Samples, and choose Import next to that sample. Unity's tarball installation guide - For the
.unitypackage, choose Assets > Import Package > Custom Package, select the file, and click Import in the asset list. DxMessaging appears underAssets/WallstopStudios/DxMessaging. Open the included scenes directly from itsSamplesfolder. Unity's local asset import guide
If you already imported DxMessaging 3.3.0 as a classic package, follow the Guides-Migration-Guide#replace-a-classic-330-import before importing 4.0.0.
Embed the package under your Unity project's Packages directory, preserving
the package manifest and analyzer layout:
git clone https://github.com/Ambiguous-Interactive/DxMessaging.git Packages/com.wallstop-studios.dxmessagingFor ZIP downloads, extract the repository contents into
Packages/com.wallstop-studios.dxmessaging. Do not copy the package into
Assets; that bypasses Unity Package Manager behavior.
- Open your project's
Packages/manifest.jsonand add:
{
"dependencies": {
"com.wallstop-studios.dxmessaging": "https://github.com/Ambiguous-Interactive/DxMessaging.git"
}
}- Unity 2021.3+ (LTS recommended). See Reference-Compatibility for Unity x Render Pipeline support (Built-In, URP, HDRP).
DxMessaging's compiled source generators ([DxUntargetedMessage], [DxTargetedMessage],
[DxBroadcastMessage], [DxAutoConstructor]) work whether or not your project
uses assembly definitions. In 4.0, add WallstopStudios.DxMessaging.Attributes to each
custom assembly definition that uses these attributes. Keep WallstopStudios.DxMessaging
when the same assembly uses message interfaces or runtime APIs. The compiler DLLs are
scoped to the attributes assembly and assemblies that reference it. Unity's predefined Assembly-CSharp
receives the references automatically; you do not need to create an assembly definition
for [Dx*Message] types to generate.
The package ships the compiler DLLs and uses them only at compile time. If you are upgrading
from a version that used copies under Assets/, follow the
Reference-Analyzers#remove-legacy-analyzer-copies.
- Jump to Getting-Started-Quick-Start. No bootstrap GameObject is required: DxMessaging creates the default message bus automatically.
- Add your
MessageAwareComponentreceiver to a GameObject. Unity adds its requiredMessagingComponentautomatically. - Use
MessagingComponentdirectly only when anotherMonoBehaviourneeds an owned registration token or a configured message-bus provider. - Optional: enable diagnostics from the
MessagingComponentinspector to inspect live emissions.
- 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