{"repo":"Puring103/GenEvent","free":true,"listed":false,"github":"https://github.com/Puring103/GenEvent","clone":"git clone https://github.com/Puring103/GenEvent.git","description":"A fast 0GC and easy to use Event library for both .Net and Unity, which using code generation and without runtime reflection","language":"C#","stars":26,"topics":["csharp","dotnet","event-driven","events","sourcegenerator","unity","unity-package","unity2d","unity3d","unity3d-plugin"],"license":"MIT","category":"game-templates","readme_excerpt":"GenEvent 中文文档 / Chinese: README zh.md GenEvent is a high‑performance event library. It uses a source generator to emit all dispatching code at compile time, requires no runtime reflection, and works with both .NET and Unity (netstandard2.0). Table of Contents - GenEvent - Table of Contents - Key Features - Getting Started - Installation - Unity Projects - Minimal Example - Runtime Contract - Core APIs - Defining Events - Defining Subscribers and Handlers - Static Handlers - Initialization - Subscription Lifetime - Publishing Events - Event Priority - Canceling Propagation - Publish Filters - Async Support - .NET Benchmarks - Source Generator Constraints & Diagnostics - License Key Features - No runtime reflection : All dispatching and registration code is generated at compile time by a source generator. - Zero-allocation hot path : Default publish and common built-in fluent filter chains stay allocation-free in steady state. Custom WithFilter(Predicate ) , chained custom predicates, or built-in chains that exceed the current inline rule capacity may still allocate. - IL2CPP‑friendly : Does not rely on runtime reflection and is safe to use in IL2CPP/AOT environments. - Priority support : [OnEvent(SubscriberPriority.XXX)] determines invocation order at compile time, so there is no sorting cost at runtime. - Propagation cancelation : A handler can return false . Combined with Cancelable() , this stops further event dispatch. - Flexible subscription lifetime : StartListening retu","default_branch":null,"files":null,"tree":[],"storefront":"/r/Puring103","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Puring103/GenEvent/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}