Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Events.UnityEventTools.RemovePersistentListener

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public static function RemovePersistentListener(unityEvent: UnityEventBase, index: int): void;
public static void RemovePersistentListener(UnityEventBase unityEvent, int index);
public static def RemovePersistentListener(unityEvent as UnityEventBase, index as int) as void
public static function RemovePersistentListener(unityEvent: UnityEventBase, call: UnityAction): void;
public static void RemovePersistentListener(UnityEventBase unityEvent, UnityAction call);
public static def RemovePersistentListener(unityEvent as UnityEventBase, call as UnityAction) as void
public static function RemovePersistentListener(unityEvent: UnityEventBase, call: UnityAction<T0>): void;
public static void RemovePersistentListener(UnityEventBase unityEvent, UnityAction<T0> call);
public static def RemovePersistentListener(unityEvent as UnityEventBase, call as UnityAction<T0>) as void
public static function RemovePersistentListener(unityEvent: UnityEventBase, call: UnityAction<T0,T1>): void;
public static void RemovePersistentListener(UnityEventBase unityEvent, UnityAction<T0,T1> call);
public static def RemovePersistentListener(unityEvent as UnityEventBase, call as UnityAction<T0,T1>) as void
public static function RemovePersistentListener(unityEvent: UnityEventBase, call: UnityAction<T0,T1,T2>): void;
public static void RemovePersistentListener(UnityEventBase unityEvent, UnityAction<T0,T1,T2> call);
public static def RemovePersistentListener(unityEvent as UnityEventBase, call as UnityAction<T0,T1,T2>) as void
public static function RemovePersistentListener(unityEvent: UnityEventBase, call: UnityAction<T0,T1,T2,T3>): void;
public static void RemovePersistentListener(UnityEventBase unityEvent, UnityAction<T0,T1,T2,T3> call);
public static def RemovePersistentListener(unityEvent as UnityEventBase, call as UnityAction<T0,T1,T2,T3>) as void

Parameters

unityEvent Event to modify.
index Index to remove (if specified).
call Function to remove (if specified).

Description

Removes the given function from the event.