Skip to content

Wehlney/unity-packages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Wehlney Unity Packages

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.

How To Find A Package

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:

  1. Look for the topic folder that matches the system you want, for example eventbus/.
  2. Open that folder's README.md for package-specific notes and recommended install URLs.
  3. Pick the exact package folder whose package.json name matches the package you want to install.
  4. 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.

How To Install A Package

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.

Dependency Order

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.

Current Package Groups

EventBus

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.

Versioning

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.

Development Notes

  • Commit Unity .meta files.
  • 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages