Legacy Documentation: Version 5.5
LanguageEnglish
  • C#
  • JS

Script language

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

UnityEventTools.RemovePersistentListener

public static void RemovePersistentListener(Events.UnityEventBase unityEvent, int index);
public static void RemovePersistentListener(Events.UnityEventBase unityEvent, Events.UnityAction call);
public static void RemovePersistentListener(Events.UnityEventBase unityEvent, Events.UnityAction_1 call);
public static void RemovePersistentListener(Events.UnityEventBase unityEvent, Events.UnityAction_2 call);
public static void RemovePersistentListener(Events.UnityEventBase unityEvent, Events.UnityAction_3 call);
public static void RemovePersistentListener(Events.UnityEventBase unityEvent, Events.UnityAction_4 call);

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.