fix page |
Reworded quite a bit. Added links for Slot and DynamicVariableSpace component. |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#Invoke:ProtoFlux|GenerateUI | {{#Invoke:ProtoFlux|GenerateUI | ||
|Name=Read Dynamic Variable | |Name=Read Dynamic Variable | ||
|Category= | |Category=Variables | ||
|Inputs= | |Inputs= | ||
[ | [ | ||
Line 14: | Line 14: | ||
|}} | |}} | ||
Read Dynamic Variable | The <code>Read Dynamic Variable</code> node takes in a [[Slot]] as a source and goes down the hierarchy to find the first [[Component:DynamicVariableSpace|dynamic space]] that contains the path specified. This returns the matching type's value if one is found. For more information, see [[Dynamic Variables]]. | ||
{{Template:Note|Although you cannot jump or skip variable spaces using this node from your provided string path, you can however use multiple of these nodes in conjunction together and provide more path strings to get to where you want to search for in the hierarchy (best showcased when using Slots as your returning value).|information}} | |||
== Inputs == | == Inputs == | ||
=== Source ([[Type:Slot]]) === | === Source ([[Type:Slot|Slot]]) === | ||
This is the source slot that this node reads from. | This is the source slot that this node reads from. If the slot for this isn't provided, the engine will default the source slot to the slot of the node itself. | ||
=== Path ([[Type:String]]) === | === Path ([[Type:String|String]]) === | ||
The string input to find where to read from. | The string input to find where to read from. | ||
Line 28: | Line 30: | ||
== Outputs == | == Outputs == | ||
=== FoundValue ([[Type:Bool]]) === | === FoundValue ([[Type:Bool|bool]]) === | ||
Whether the value we are searching for is found or not. | Whether the value we are searching for is found or not. | ||
Line 36: | Line 38: | ||
The value that is found. | The value that is found. | ||
[[Category: | [[Category:ProtoFlux:Variables:DynamicVariables]] |
Latest revision as of 17:18, 16 April 2024
Read Dynamic Variable
Variables
The Read Dynamic Variable
node takes in a Slot as a source and goes down the hierarchy to find the first dynamic space that contains the path specified. This returns the matching type's value if one is found. For more information, see Dynamic Variables.
Inputs
Source (Slot)
This is the source slot that this node reads from. If the slot for this isn't provided, the engine will default the source slot to the slot of the node itself.
Path (String)
The string input to find where to read from.
Outputs
FoundValue (bool)
Whether the value we are searching for is found or not.
Value (Generic)
The value that is found.