API reference
API reference
Select your platform
No SDKs available
No versions available

UnityEventExtensions Class

A static extension class that provides single line implementation for adding or removing UnityEvent listeners

Static Member Functions

Either adds or removes a call action with no parameters based on the provided boolean
Parameters
baseEvent
The base event for the action to be
call
The action to be called when baseEvent is invoked
add
If true, the action is added as a listener. If false, it is removed.
Either adds or removes a call action with a single parameter based on the provided boolean
Parameters
baseEvent
The base event for the action to be
call
The action to be called when baseEvent is invoked
add
If true, the action is added as a listener. If false, it is removed.
Either adds or removes a call action with two parameters based on the provided boolean
Parameters
baseEvent
The base event for the action to be
call
The action to be called when baseEvent is invoked
add
If true, the action is added as a listener. If false, it is removed.
Either adds or removes a call action with three parameters based on the provided boolean
Parameters
baseEvent
The base event for the action to be
call
The action to be called when baseEvent is invoked
add
If true, the action is added as a listener. If false, it is removed.
Either adds or removes a call action with four parameters based on the provided boolean
Parameters
baseEvent
The base event for the action to be
call
The action to be called when baseEvent is invoked
add
If true, the action is added as a listener. If false, it is removed.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon