unity-event-bus
Advanced code-driven event bus with reflection-based bootstrapping. Provides zero-setup global messaging.
How do I install this agent skill?
npx skills add https://github.com/muharremtozan/unity-agent-skills --skill unity-event-busIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill provides a high-performance event bus system for Unity projects. It utilizes standard C# reflection for automated initialization and cleanup, ensuring zero-configuration usage and memory safety in the Unity Editor. No malicious behaviors or security vulnerabilities were detected.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
Unity Advanced Event Bus
This skill provides a high-performance, type-safe messaging hub for Unity projects. It is designed for developers who want to decouple systems without the overhead of ScriptableObject-based event channels.
Core Features
- Reflection Bootstrapping: Automatically finds all events and initializes buses on game load.
- Generic Performance: Uses static generic indices for O(1) event dispatch performance.
- Zero Allocation: Optimized for structs to ensure no runtime garbage collection for messages.
- Editor Safety: Auto-clears all static bindings when exiting Play Mode to prevent Editor memory leaks.
Core Files (Max 3)
EventBusCore.cs.txt: Base interfaces and the static generic bus hub.EventBusBootstrapper.cs.txt: Unity-specific auto-initialization and assembly scanning.EventBusExample.cs.txt: Practical implementation of player and system events.
Usage
Define a struct : IEvent, create an EventBinding<T>, and register it in OnEnable. Raise events from anywhere using EventBus<T>.Raise().
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/muharremtozan/unity-agent-skills/unity-event-bus">View unity-event-bus on skillZs</a>