Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

UnityEventTools.AddObjectPersistentListener

Switch to Manual
public static function AddObjectPersistentListener(unityEvent: Events.UnityEventBase, call: UnityAction<T>, argument: T): void;

Parameters

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

Description

Adds a persistent, preset call to the listener.