Add some info for Continuous Relay node |
m gallery with missing photo for later |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#Invoke:ProtoFlux|GenerateUI | |||
|Name=Continuous Relay | |||
|Category=Utility | |||
|Inputs= | |||
[ | |||
{"Name":"Input", "Type":"Dummy"} | |||
] | |||
|Outputs= | |||
[ | |||
{"Name":"*", "Type":"Dummy"} | |||
] | |||
|Globals= | |||
[ | |||
] | |||
|}} | |||
This is a value/object passthrough node that is marked with the ContinuouslyChanging attribute, which means that the output of this node will be evaluated every engine update cycle, which roughly equivalates to every frame. | This is a value/object passthrough node that is marked with the ContinuouslyChanging attribute, which means that the output of this node will be evaluated every engine update cycle, which roughly equivalates to every frame. | ||
This node can cause lag / low performance if used excessively. Mostly you should try to avoid using it. | This node can cause lag / low performance if used excessively. Mostly you should try to avoid using it. | ||
Use the Value variant of the node for Value Types such as Int, Bool, Float. | |||
Use the Object variant of the node for Object Types such as Slot, User, String. | |||
== Inputs == | |||
=== Input (Generic) === | |||
I am an input that can be of any type. | |||
<br>Example inputs: [[Type:Bool|Bool]], [[Type:Int|Int]], [[Type:Slot|Slot]] | |||
== Outputs == | |||
=== * (Generic) === | |||
I am an output that evaluates continuously! | |||
== Examples == | |||
<gallery widths=480px heights=480px> | |||
File:Protoflux_example_Continuously_Changing_Relay.webp|Example of how to use a Continuously Changing Relay to make sure a value stays up to date where it usually wouldn't, with a short comment on it explaining why. | |||
</gallery> | |||
[[Category:ProtoFlux:Utility]] |
Latest revision as of 19:13, 11 February 2024
Continuous Relay
Utility
This is a value/object passthrough node that is marked with the ContinuouslyChanging attribute, which means that the output of this node will be evaluated every engine update cycle, which roughly equivalates to every frame.
This node can cause lag / low performance if used excessively. Mostly you should try to avoid using it.
Use the Value variant of the node for Value Types such as Int, Bool, Float.
Use the Object variant of the node for Object Types such as Slot, User, String.
Inputs
Input (Generic)
I am an input that can be of any type.
Example inputs: Bool, Int, Slot
Outputs
* (Generic)
I am an output that evaluates continuously!
Examples
-
Example of how to use a Continuously Changing Relay to make sure a value stays up to date where it usually wouldn't, with a short comment on it explaining why.