 | EventManagerOperatorSetListener Method |
Sets the passed callback for events with the specified key.
The callback will automatically be added on enable, and removed on disable.
Namespace: Slash.Unity.Common.ECSAssembly: Slash.Unity.Common (in Slash.Unity.Common.dll) Version: 1.0.6018.40182
Syntaxprotected virtual void SetListener(
Object eventKey,
EventManagerEventDelegate callback
)
Protected Overridable Sub SetListener (
eventKey As Object,
callback As EventManagerEventDelegate
)
protected:
virtual void SetListener(
Object^ eventKey,
EventManagerEventDelegate^ callback
)
abstract SetListener :
eventKey : Object *
callback : EventManagerEventDelegate -> unit
override SetListener :
eventKey : Object *
callback : EventManagerEventDelegate -> unit
Parameters
- eventKey
- Type: SystemObject
Key of events to set the callback for. - callback
- Type: Slash.ECS.EventsEventManagerEventDelegate
Callback to automatically add on enable, and remove on disable.
See Also