RemoveListener(UnityAction)
Remove a non persistent listener from the UnityEvent. If you have added the same listener multiple times, this method will remove all occurrences of it.
Read time 1 minuteLast updated 2 months ago
Definition
- Type: Method
- Namespace: UnityEngine.Events
- Assembly: UnityEngine.CoreModule
public void RemoveListener(UnityAction call)
Parameters
Callback function.
Remarks
Use this to remove a runtime callback.