ProtoFlux:FieldAsVariable: Difference between revisions

From Resonite Wiki
overhaul
m YoshBot moved page ProtoFlux:Field As Variable to ProtoFlux:FieldAsVariable: Automated: removing spaces from ProtoFlux namespace
 
(One intermediate revision by one other user not shown)
Line 36: Line 36:


[[Category:ProtoFlux:Core]]
[[Category:ProtoFlux:Core]]
[[Category:IVariable nodes]]

Latest revision as of 23:51, 20 August 2025

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