View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.0
- Last updated
- First released
- Unity version
- 2021.3.18 or later
- Package size
- 254 KB
- Files
- 31
- Favorites
- 70
- Views in the past week
- 12
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- Free on
Keywords
Gen Events
- Price drop
A Simple Observer Pattern using Scriptable Objects
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 2
Gen Events screenshot 1
About this asset
Gen Events is a clean implementation of Observer Game Design Pattern utilizing the power of Unity's Scriptable Objects
Singletons almost always start simple and are indeed practical in small projects, however; more often than not, they turn into a "God Class" on which your game is heavily dependant and hard to maintain.
It is a C# Pub-Sub system in which the Publisher MonoBehaviour sends itself to all registered Subscribers through a shared Scriptable Object asset located in the project files NOT loaded into the scene, making it easier to switch between different levels.
Demo Scene included with a basic implementation of 1 Publisher and 5 Subscribers performing common Game Events e.g. Glow, Scale, SFX, Spawn Particles, and Camera Shake
Minimal Setup: (Demo Scene and Tutorial Included in the Package)
From the publisher's Asset Store listing.
Compatibility
| Unity version | Built-in | URP | HDRP |
|---|---|---|---|
| 2021.3.18f1 | Not listed | Compatible | Not listed |
As listed on the Asset Store.