Event Channels System
>-
com.jvarelaaloisio.events 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
## 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
```
[](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>>)orTrySubscribe(<<HandlerMethod>>)). It is recomended to subscribe to the channel inOnEnableand unsubscribe inOnDisable. The observed object/s can raise the event (RaiseEvent(<<value>>)orTryRaiseEvent(<<value>>)).
Flow Chart
Questions and Feedback
For general questions, feedback or job opportunities, you can send me an email.
No comments yet. Be the first!