m node visual wrong |
use template |
||
Line 19: | Line 19: | ||
Indirect writes take Variable ([[Type:Variable|Variable]]) as an input, and the type that Variable wraps will determine what Value (Generic) will take as a value. The node will then write Value (Generic) to the field Variable ([[Type:Variable|Variable]]) wraps. | Indirect writes take Variable ([[Type:Variable|Variable]]) as an input, and the type that Variable wraps will determine what Value (Generic) will take as a value. The node will then write Value (Generic) to the field Variable ([[Type:Variable|Variable]]) wraps. | ||
{{Template:How To Make Type Variables|Indirect Writes}} | |||
== Inputs == | == Inputs == |
Revision as of 01:55, 3 February 2024
Indirect writes can be commonly found in legacy content that has been migrated from other platforms. Indirect writes take Variable (Variable) as an input, and the type that Variable wraps will determine what Value (Generic) will take as a value. The node will then write Value (Generic) to the field Variable (Variable) wraps.
Variables for Indirect Writes can be made using a Field As Variable which can wrap any type (Generic). Variables can also be made by dragging a source of the same wrapped type (ex:Source<String> -> Variable<String>) into any variable input and it will make a special converter to connect them. This can be multiplexed using Multiplexing for using multiple variables into the same input on Indirect Writes. Multiplexing the inputs on Indirect Writes can be useful in modifying a list of variables during a For or While loop.
Inputs
* (Call)
Call this to write the value.
Value (Generic)
Value to write to the value being wrapped by Variable Variable
Variable (Variable Generic)
The Variable to write to.
Outputs
OnWritten (Continuation)
sends an impulse after * (Call) has been impulsed and the value has been written.
OnFail (Continuation)
sends an impulse after * (Call) has been impulsed and the value wasn't able to be written due to a missing target or the variable not wrapping a valid IField`1
Examples
-
A basic setup for making an Indirect Write write to a field shown in the inspector.