Interface IModEvents
Owner-tracked main-thread lifecycle event subscriptions.
public interface IModEvents
Methods
Subscribe<T>(Action<T>)
Subscribes to an exact event type for the owner lifetime.
IDisposable Subscribe<T>(Action<T> handler)
Parameters
handlerAction<T>Callback invoked on Unity's main thread.
Returns
- IDisposable
A subscription that must be disposed on Unity's main thread when no longer needed.
Type Parameters
TThe event payload type, such as GameDataReady.