FRP Event Handler
FRP Event Handler provides a flexible, generic event management system for decoupling game logic through scriptable GameEvents. Subscribe to events via code delegates or configure them visually through the SimpleEventTrigger component. Supports typed parameters, custom event generation for 1-9 types, and integrates seamlessly with Unity's inspector workflow for rapid event-driven architecture implementation.
com.fredericrp.eventhandler 
Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/eventhandler.git README Markdown
Copy this to your project's README.md
## Installation
Add **FRP Event Handler** 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/eventhandler.git
```
[](https://www.pkglnk.dev/pkg/eventhandler)Dependencies (1)
Used By (5)
README
Event Management
A generic event handler that allows you to subscribe and trigger game events in your game in a minute.
GameEvents have evolved thanks to the Unite 2017 presentation by Schell Games (but we still prefer our way to handle listener with delegates).
Usage
Create new game events from the project view using Create / FredericRP / [...] Game Event (with a typed parameter or no parameter)
Use it by Code
- add a delegate that will receive the event using AddEventListener (and RemoveEventListener)
- trigger the event using TriggerEvent
- OR Use it with provided SimpleEventTrigger
- put this MonoBehaviour on a GameObject
- assign the game event you just created
- add as many unity events as you want to call functions
See the Screen Transition demo.
Advanced
If you need new typed game event, you can open the New type game event window under Window / FredericRP / EventManagement / New type generation and specify from 1 to 9 types to generate the new game event.
For instance, you can indicate 3 types as string, int and MyAssembly.MyClass and it will generate the StringIngMyAssemblyMyClassGameEvent parented to ThreeTypeGameEvent and its StringIngMyAssemblyMyClassGameEventInspector
No comments yet. Be the first!