Unity - Scripting API: Events.UnityEvent.AddListener ­
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.UnityEvent.AddListener

public void AddListener(UnityAction call);

Parameters

call Callback function.

Description

Add a non persistent listener to the UnityEvent.

Use this to add a runtime callback.