Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 2.24 KB

variable.md

File metadata and controls

49 lines (31 loc) · 2.24 KB

Variable

Use this node to store a single data variable that will be globally accessible throughout the application.

Store a value

Give the Variable a name with the Name input and simply connect to Value, whenever the input connection is updated the value will be stored in the variable.

Use a stored value

When a value is stored in a variable you can use it somewhere else in your application simply be creating a new node and giving it the same Name.

Controlled store

By connecting to Set you can control when the value is stored to the variable. Now the Value input is only saved in the variable when a signal is received on Set.

INPUTS

Name
The name of the Variable. All Variable nodes with the same name will share the same data.

Value
The value that you want the Variable to get when you trigger the Set signal. You will connect your data to this input.

Set
A signal input. When this input has a connection and a signal is received on this input, it will store the current value on the Value input in the Variable and all other Variable nodes will receive the stored value. If this input does not have a connection the node will store as soon as it receives a new value on the Value input.

Fetch
Normally the value output of the node is updated once the Name input is set and if there is a change in the data from somewhere in the graph. However, if this signal has a connection it will wait until it gets a signal on fetch before it updates.

OUTPUTS

Value
The current value of this Variable node. This will only update when the Set signal is triggered on this or any other Variable node with the same Name.

Stored
Signal when the Set is complete and the data is stored.

Changed
Signal when the Value of this Variable has changed.

Fetched
Signal when the data of this Variable node has been fetched and updated, either as a response to the Fetch input signal (when it has completed and the output Value is updated), or when the Name of the variable have changed.

Name
The name of the Variable.