ProtoFlux:Field As Variable

From Resonite Wiki
Field As Variable<T>
Field
*
Core

The Field As Variable node transforms an IValue of the given type into an IVariable that can then be written to with an Indirect Write node.

Despite being called "Field As Variable", any IValue type will work as input. An example of an IValue that is not necessarily a Field is the AuthorityTimeBase component.

This node implements IVariable itself. This means that one may drag the output of this node into a normal Write node and write to the given IValue. This is actually more performant than using an Indirect Write, as a normal write node does not check if the variable changes every time it is pulsed. However, The performance gain diminishes the more often the input IValue changes, being roughly equal if the IValue changes at every write call.

Inputs

Field (IValue<T>)

The IValue of type T to transform into a variable.

Outputs

* (Variable)

A variable created from the given Field.

Examples