Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Type:IExecutionChangeListener`1

From Resonite Wiki
(Redirected from Listener nodes)

The IExecutionChangeListener<T> type is an interface type applied to ProtoFlux nodes. This interface marks the node as a listener node.

Listener nodes listen for changes on their input and evaluate themselves whenever they are notified of a potential change by the input chain. This means that they are lazy by default and only evaluate when needed. Changes are triggered by the data model and can come from a variety of sources:

  • Source or ChangeableSource nodes.
    • These get events from the data model directly whenever the sourced element detects some kind of change to itself.
  • Input nodes upon being changed by the user itself.
    • Unlike Source nodes, reference input nodes do not receive change events whenever the referenced object detects some kind of change to itself, and thus won't re-evaluate any listener nodes.
  • DataModelStore nodes.

However, if any node in the input node chain has the ContinuouslyChanging attribute, the listener node will forcibly evaluate every engine update instead. This can be observed by inspecting the node with an inspector and looking at the yellow debug text. If it contains ContinuouslyChanging: True, then the node input is being evaluated every frame.

See also

Contents