Version: 2017.3

UnityEventTools.RemovePersistentListener

Switch to Manual
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 @param unityEvent Событие для изменения.
index @param index Индекс для удаления (если указан).
call @param call Функция для удаления (если указана).

Description

Удаляет заданную функцию из события.