Unclaimed Package Is this your package? Claim it to unlock full analytics and manage your listing.
Claim This Package

Install via UPM

Add to Unity Package Manager using this URL

https://www.pkglnk.dev/jvarelaaloisio-events.git

README Markdown

Copy this to your project's README.md

Style
Preview
pkglnk installs badge
## Installation

Add **Event Channels System** to your Unity project via Package Manager:

1. Open **Window > Package Manager**
2. Click **+** > **Add package from git URL**
3. Enter:
```
https://www.pkglnk.dev/jvarelaaloisio-events.git
```

[![pkglnk](https://www.pkglnk.dev/badge/jvarelaaloisio-events.svg?style=pkglnk)](https://www.pkglnk.dev/pkg/jvarelaaloisio-events)

README

Event Channels System

This is an extension on the Unity and C# events system that implements a set of communication channels through the observable design pattern. This structure is based on Unity's own tutorials.

Use of the communication channels

  • To comunicate between objects, we need to create a new channel asset (Create/Event Channels/<<your channel type>>).
  • This channel has to be referenced from all the event raisers (or observed objects) and all Listeners (or observers).
  • All listeners have to subscribe to the channel (Subscribe(<<HandlerMethod>>) or TrySubscribe(<<HandlerMethod>>)). It is recomended to subscribe to the channel in OnEnable and unsubscribe in OnDisable. The observed object/s can raise the event (RaiseEvent(<<value>>) or TryRaiseEvent(<<value>>)).

Flow Chart

Event Channel flow chart

Questions and Feedback

For general questions, feedback or job opportunities, you can send me an email.

Comments

No comments yet. Be the first!