UiEvent

csharp
public sealed class UiEvent

Namespace NodeWorld.Flux.

A UI event of a component (click, value change...): the listeners run in the script that added them; a listener that throws stops its script, like a callback.

Methods

AddListener

csharp
public void AddListener(Action listener)

Runs listener on each event, in the script that adds it.

RemoveListener

csharp
public void RemoveListener(Action listener)

Removes a listener added with AddListener.

RemoveAllListeners

csharp
public void RemoveAllListeners()

Removes every listener of this event.