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

public static function RemovePersistentListener(unityEvent: UnityEventBase, index: int): void;
public static function RemovePersistentListener(unityEvent: UnityEventBase, call: UnityAction): void;
public static function RemovePersistentListener(unityEvent: UnityEventBase, call: UnityAction<T0>): void;
public static function RemovePersistentListener(unityEvent: UnityEventBase, call: UnityAction<T0,T1>): void;
public static function RemovePersistentListener(unityEvent: UnityEventBase, call: UnityAction<T0,T1,T2>): void;
public static function RemovePersistentListener(unityEvent: UnityEventBase, call: UnityAction<T0,T1,T2,T3>): 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.