Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

UnityEventTools.AddObjectPersistentListener

public static void AddObjectPersistentListener(Events.UnityEventBase unityEvent, UnityAction<T> call, T argument);

Parameters

unityEvent Event to modify.
call Function to call.
argument Argument to use when invoking.

Description

Adds a persistent, preset call to the listener.