RemovePersistentListener
Removes the given function from the event.
읽는 시간 3분최근 업데이트: 한 달 전
Definition
- Type: Method
- Namespace: UnityEditor.Events
- Assembly: UnityEditor.CoreModule
RemovePersistentListener(UnityEventBase, int)
Removes the given function from the event.
public static void RemovePersistentListener(UnityEventBase unityEvent, int index)
Parameters
Remarks
You can specify either the index of the listener function to remove, or the delegate type of the listener function to remove. If you specify the delegate type, this method removes all occurrences of that listener function from the event. If you specify the the index, this method only removes the listener function at the index specified.
RemovePersistentListener(UnityEventBase, UnityAction)
Removes the given function from the event.
public static void RemovePersistentListener(UnityEventBase unityEvent, UnityAction call)
Parameters
Remarks
You can specify either the index of the listener function to remove, or the delegate type of the listener function to remove. If you specify the delegate type, this method removes all occurrences of that listener function from the event. If you specify the the index, this method only removes the listener function at the index specified.
RemovePersistentListener<T>(UnityEventBase, UnityAction<T>)
Removes the given function from the event.
public static void RemovePersistentListener<T0>(UnityEventBase unityEvent, UnityAction<T0> call)
Parameters
Remarks
You can specify either the index of the listener function to remove, or the delegate type of the listener function to remove. If you specify the delegate type, this method removes all occurrences of that listener function from the event. If you specify the the index, this method only removes the listener function at the index specified.
RemovePersistentListener<T, U>(UnityEventBase, UnityAction<T, T>)
Removes the given function from the event.
public static void RemovePersistentListener<T0, T1>(UnityEventBase unityEvent, UnityAction<T0, T1> call)
Parameters
Remarks
You can specify either the index of the listener function to remove, or the delegate type of the listener function to remove. If you specify the delegate type, this method removes all occurrences of that listener function from the event. If you specify the the index, this method only removes the listener function at the index specified.
RemovePersistentListener<T, U, V>(UnityEventBase, UnityAction<T, T, T>)
Removes the given function from the event.
public static void RemovePersistentListener<T0, T1, T2>(UnityEventBase unityEvent, UnityAction<T0, T1, T2> call)
Parameters
Remarks
You can specify either the index of the listener function to remove, or the delegate type of the listener function to remove. If you specify the delegate type, this method removes all occurrences of that listener function from the event. If you specify the the index, this method only removes the listener function at the index specified.
RemovePersistentListener<T, U, V, W>(UnityEventBase, UnityAction<T, T, T, T>)
Removes the given function from the event.
public static void RemovePersistentListener<T0, T1, T2, T3>(UnityEventBase unityEvent, UnityAction<T0, T1, T2, T3> call)
Parameters
Event to modify.
Function to remove (if specified).
Remarks
You can specify either the index of the listener function to remove, or the delegate type of the listener function to remove. If you specify the delegate type, this method removes all occurrences of that listener function from the event. If you specify the the index, this method only removes the listener function at the index specified.