This repository is a collection of reusable Unity packages by Wehlney.
Packages are grouped by topic so individual systems can be shared, versioned, and installed without copying code between game projects.
Package groups live as top-level folders. Each group can contain one or more Unity Package Manager packages.
unity-packages/
eventbus/
com.wehlney.eventbus/
com.wehlney.eventbus.purrnet/
com.wehlney.eventbus.reflex/
To find what you need:
- Look for the topic folder that matches the system you want, for example
eventbus/. - Open that folder's
README.mdfor package-specific notes and recommended install URLs. - Pick the exact package folder whose
package.jsonname matches the package you want to install. - If a package has integration-specific variants, install only the adapters you need. For example, a Reflex project can install a Reflex adapter, while a non-Reflex project can skip it.
Unity Package Manager can install a package from this repository by using a Git URL with a ?path= query.
General format:
https://github.com/wehlney/unity-packages.git?path=/GROUP/PACKAGE_FOLDER#VERSION_TAG
Example:
"com.wehlney.eventbus": "https://github.com/wehlney/unity-packages.git?path=/eventbus/com.wehlney.eventbus#v0.1.0"You can add this directly to your Unity project's Packages/manifest.json under dependencies.
{
"dependencies": {
"com.wehlney.eventbus": "https://github.com/wehlney/unity-packages.git?path=/eventbus/com.wehlney.eventbus#v0.1.0"
}
}You can also install through Unity's Package Manager UI with Add package from git URL and paste the same URL.
Some packages build on top of others. Install the base package first, then optional integrations.
For example, the EventBus group is layered like this:
com.wehlney.eventbus
-> com.wehlney.eventbus.purrnet
-> com.wehlney.eventbus.reflex
If Unity reports a missing package dependency, check the package group's README and add the required base package URL to your manifest.json as well.
Location: eventbus/
Reusable event-publishing packages for Unity projects:
com.wehlney.eventbus: core EventBus runtime.com.wehlney.eventbus.purrnet: PurrNet network-event integration.com.wehlney.eventbus.reflex: Reflex DI adapter for the EventBus packages.
See eventbus/README.md for details.
Packages are intended to be installed with a Git tag, such as #v0.1.0.
For now, release tags version this repository as a whole. Package versions in each package.json should be updated before creating a new tag.
- Commit Unity
.metafiles. - Keep package runtime code reusable and free of project-specific game code.
- Put optional framework integrations, such as Reflex or Zenject bindings, in adapter packages.
- Prefer small package APIs with tests and focused documentation.