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.RegisterPersistentListener

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 RegisterPersistentListener(unityEvent: UnityEvent, index: int, call: UnityAction): void;
public static void RegisterPersistentListener(UnityEvent unityEvent, int index, UnityAction call);
public static def RegisterPersistentListener(unityEvent as UnityEvent, index as int, call as UnityAction) as void
public static function RegisterPersistentListener(unityEvent: UnityEvent<T0>, index: int, call: UnityAction<T0>): void;
public static void RegisterPersistentListener(UnityEvent<T0> unityEvent, int index, UnityAction<T0> call);
public static def RegisterPersistentListener(unityEvent as UnityEvent<T0>, index as int, call as UnityAction<T0>) as void
public static function RegisterPersistentListener(unityEvent: UnityEvent<T0,T1>, index: int, call: UnityAction<T0,T1>): void;
public static void RegisterPersistentListener(UnityEvent<T0,T1> unityEvent, int index, UnityAction<T0,T1> call);
public static def RegisterPersistentListener(unityEvent as UnityEvent<T0,T1>, index as int, call as UnityAction<T0,T1>) as void
public static function RegisterPersistentListener(unityEvent: UnityEvent<T0,T1,T2>, index: int, call: UnityAction<T0,T1,T2>): void;
public static void RegisterPersistentListener(UnityEvent<T0,T1,T2> unityEvent, int index, UnityAction<T0,T1,T2> call);
public static def RegisterPersistentListener(unityEvent as UnityEvent<T0,T1,T2>, index as int, call as UnityAction<T0,T1,T2>) as void
public static function RegisterPersistentListener(unityEvent: UnityEvent<T0,T1,T2,T3>, index: int, call: UnityAction<T0,T1,T2,T3>): void;
public static void RegisterPersistentListener(UnityEvent<T0,T1,T2,T3> unityEvent, int index, UnityAction<T0,T1,T2,T3> call);
public static def RegisterPersistentListener(unityEvent as UnityEvent<T0,T1,T2,T3>, index as int, call as UnityAction<T0,T1,T2,T3>) as void

Parameters

unityEvent Event to modify.
index Index to modify.
call Function to call.

Description

Modifies the event at the given index.