Progetto H — Riferimento API Documentazione & Scripting
Funzione statica Condiviso Veloce

Events.Unsubscribe

Removes a local event listener previously registered with <code>Events.Subscribe()</code>. If no specific callback function is passed, it removes ALL local listeners for that event name in the current Package

Non ancora tradotto

Sintassi

Lua
Events.Unsubscribe(event_name, callback = nil)

Parametri

Nome Tipo Predefinito Descrizione
event_name string The Event Name to unsubscribe
callback facoltativo function nil The callback function to unsubscribe