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

public static void AddIntPersistentListener(Events.UnityEventBase unityEvent, UnityAction<int> call, int 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.