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

Switch to Manual
public static function AddIntPersistentListener(unityEvent: Events.UnityEventBase, call: UnityAction<int>, argument: int): 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.