You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently to use a custom listener you have to use a listener component or implement the IScriptableEventListener<TArg> interface. In most cases using a component is enough, however it would also be handy to have the ability to add listeners of type Action, which would allow to supply regular methods.
One thing to keep in mind is that adding this functionality will harm the traceability (the list of listeners on asset).
TODOs:
Add support for Action<TArg>
Update documentation
The text was updated successfully, but these errors were encountered:
Currently to use a custom listener you have to use a listener component or implement the
IScriptableEventListener<TArg>
interface. In most cases using a component is enough, however it would also be handy to have the ability to add listeners of typeAction
, which would allow to supply regular methods.One thing to keep in mind is that adding this functionality will harm the traceability (the list of listeners on asset).
TODOs:
Action<TArg>
The text was updated successfully, but these errors were encountered: